Skip to content

Commit 26f160d

Browse files
authored
Remove additional explict 'netcoreapp3.1' mentions (#14226)
- e.g. use netcoreappX.Y in comments
1 parent 2e4609a commit 26f160d

File tree

15 files changed

+21
-20
lines changed

15 files changed

+21
-20
lines changed

eng/Workarounds.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- Reference base shared framework at incoming dependency flow version, not bundled sdk version. -->
1010
<FrameworkReference
1111
Update="Microsoft.NETCore.App"
12-
Condition="'$(TargetFramework)' == 'netcoreapp3.1'"
12+
Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'"
1313
RuntimeFrameworkVersion="$(MicrosoftNETCoreAppRuntimeVersion)"
1414
TargetingPackVersion="$(MicrosoftNETCoreAppRefPackageVersion)"
1515
/>

eng/tools/BaselineGenerator/BaselineGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
66
<StartArguments>-s https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json</StartArguments>
77
<StartWorkingDirectory>$(MSBuildThisFileDirectory)../../</StartWorkingDirectory>
88
</PropertyGroup>

eng/tools/RepoTasks/RepoTasks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>$(DefaultNetCoreTargetFramework)</TargetFrameworks>
55
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net472</TargetFrameworks>
66
<DefineConstants Condition="'$(TargetFramework)' == 'net472'">$(DefineConstants);BUILD_MSI_TASKS</DefineConstants>
77
<Optimize>false</Optimize>
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
1717
</ItemGroup>
1818

19-
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
19+
<ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">
2020
<PackageReference Include="Microsoft.Build.Framework" Version="15.8.166" />
2121
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.8.166" />
2222
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.8.166" />

src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
2525
<BaseRuntimeVersionFileName>aspnetcore_base_runtime.version</BaseRuntimeVersionFileName>
2626
<BaseRuntimeVersionFileOutputPath>$(InstallersOutputPath)$(BaseRuntimeVersionFileName)</BaseRuntimeVersionFileOutputPath>
2727

28-
<!-- NuGet appends target framework to this value. Example: runtimes/win-x64/lib/netcoreapp3.1/ -->
28+
<!-- NuGet appends target framework to this value. Example: runtimes/win-x64/lib/netcoreappX.Y/ -->
2929
<BuildOutputTargetFolder>runtimes/$(RuntimeIdentifier)/lib/</BuildOutputTargetFolder>
3030
<!-- We still need the native path to these assets though for the RuntimeList.xml manifest -->
3131
<ManagedAssetsPackagePath>$(BuildOutputTargetFolder)$(DefaultNetCoreTargetFramework)</ManagedAssetsPackagePath>

src/ProjectTemplates/test/BlazorServerTemplateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task BlazorServerTemplateWorks_NoAuth()
3636
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
3737

3838
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
39-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
39+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
4040
// later, while the opposite is not true.
4141

4242
var buildResult = await Project.RunDotNetBuildAsync();
@@ -93,7 +93,7 @@ public async Task BlazorServerTemplateWorks_IndividualAuth(bool useLocalDB)
9393
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
9494

9595
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
96-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
96+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
9797
// later, while the opposite is not true.
9898

9999
var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/EmptyWebTemplateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task EmptyWebTemplateAsync(string languageOverride)
3636
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
3737

3838
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
39-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
39+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
4040
// later, while the opposite is not true.
4141

4242
var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/IdentityUIPackageTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public async Task IdentityUIPackage_WorksWithDifferentOptions(IDictionary<string
134134
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
135135

136136
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
137-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
137+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
138138
// later, while the opposite is not true.
139139

140140
var buildResult = await Project.RunDotNetBuildAsync(packageOptions: packageOptions);

src/ProjectTemplates/test/MvcTemplateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task MvcTemplate_NoAuthImplAsync(string languageOverride)
4848
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
4949

5050
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
51-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
51+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
5252
// later, while the opposite is not true.
5353

5454
var buildResult = await Project.RunDotNetBuildAsync();
@@ -116,7 +116,7 @@ public async Task MvcTemplate_IndividualAuthImplAsync(bool useLocalDB)
116116
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
117117

118118
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
119-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
119+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
120120
// later, while the opposite is not true.
121121

122122
var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/RazorClassLibraryTemplateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public async Task RazorClassLibraryTemplate_WithViews_Async()
3333
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
3434

3535
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
36-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
36+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
3737
// later, while the opposite is not true.
3838

3939
var buildResult = await Project.RunDotNetBuildAsync();
@@ -52,7 +52,7 @@ public async Task RazorClassLibraryTemplateAsync()
5252
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
5353

5454
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
55-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
55+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
5656
// later, while the opposite is not true.
5757

5858
var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/RazorPagesTemplateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public async Task RazorPagesTemplate_NoAuthImplAsync()
4545
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, createResult));
4646

4747
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
48-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
48+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
4949
// later, while the opposite is not true.
5050

5151
var buildResult = await Project.RunDotNetBuildAsync();
@@ -115,7 +115,7 @@ public async Task RazorPagesTemplate_IndividualAuthImplAsync(bool useLocalDB)
115115
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
116116

117117
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
118-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
118+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
119119
// later, while the opposite is not true.
120120

121121
var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/SpaTemplateTest/SpaTemplateTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected async Task SpaTemplateImplAsync(
7676
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
7777

7878
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
79-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
79+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
8080
// later, while the opposite is not true.
8181

8282
using var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/WebApiTemplateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task WebApiTemplateAsync(string languageOverride)
3636
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
3737

3838
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
39-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
39+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
4040
// later, while the opposite is not true.
4141

4242
var buildResult = await Project.RunDotNetBuildAsync();

src/ProjectTemplates/test/WorkerTemplateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task WorkerTemplateAsync()
3232
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));
3333

3434
// Run dotnet build after publish. The reason is that one uses Config = Debug and the other uses Config = Release
35-
// The output from publish will go into bin/Release/netcoreapp3.1/publish and won't be affected by calling build
35+
// The output from publish will go into bin/Release/netcoreappX.Y/publish and won't be affected by calling build
3636
// later, while the opposite is not true.
3737

3838
var buildResult = await Project.RunDotNetBuildAsync();

src/Servers/IIS/IntegrationTesting.IIS/src/IISExpressDeployer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public override async Task<DeploymentResult> DeployAsync()
5151
// Start timer
5252
StartTimer();
5353

54-
// For an unpublished application the dllroot points pre-built dlls like projectdir/bin/debug/netcoreapp3.1/
54+
// For an unpublished application the dllroot points pre-built dlls like projectdir/bin/debug/netcoreappX.Y/
5555
// and contentRoot points to the project directory so you get things like static assets.
5656
// For a published app both point to the publish directory.
5757
var dllRoot = CheckIfPublishIsRequired();

src/SignalR/common/Http.Connections/src/Internal/Transports/WebSocketsServerTransport.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ private async Task StartReceiving(WebSocket socket)
155155
var memory = _application.Output.GetMemory();
156156

157157
var receiveResult = await socket.ReceiveAsync(memory, token);
158-
// Need to check again for netcoreapp3.1 because a close can happen between a 0-byte read and the actual read
158+
159+
// Need to check again for netcoreapp3.0 and later because a close can happen between a 0-byte read and the actual read
159160
if (receiveResult.MessageType == WebSocketMessageType.Close)
160161
{
161162
return;

0 commit comments

Comments
 (0)