Skip to content

Commit 97920b7

Browse files
authored
Merge pull request #663 from dotnet/dropnetcore2.1
Drop .NET Core 2.1 support
2 parents 140a24e + b375896 commit 97920b7

File tree

6 files changed

+22
-26
lines changed

6 files changed

+22
-26
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ stages:
5656
displayName: Configure git commit author for testing
5757
5858
- task: UseDotNet@2
59-
displayName: Install .NET Core 5.0.202 SDK
59+
displayName: Install .NET Core 5.0.401 SDK
6060
inputs:
6161
packageType: sdk
62-
version: 5.0.202
62+
version: 5.0.401
6363

6464
- task: UseDotNet@2
6565
displayName: Install .NET Core 3.1 runtime
@@ -69,9 +69,9 @@ stages:
6969

7070
- pwsh: |
7171
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
72-
& .\dotnet-install.ps1 -Architecture x86 -Version 5.0.202 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
72+
& .\dotnet-install.ps1 -Architecture x86 -Version 5.0.401 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
7373
& .\dotnet-install.ps1 -Architecture x86 -Channel 3.1 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
74-
displayName: Install 32-bit .NET Core SDK 5.0.202, 3.1
74+
displayName: Install 32-bit .NET Core SDK 5.0.401, 3.1
7575
condition: ne(variables['dotnet32'], '')
7676
7777
- script: dotnet --info
@@ -107,7 +107,7 @@ stages:
107107
displayName: Build LKG package
108108
workingDirectory: src/Nerdbank.GitVersioning.Tasks
109109

110-
- script: dotnet publish -c $(BuildConfiguration) -o ../nerdbank-gitversioning.npm/out/nbgv.cli/tools/netcoreapp2.1/any /bl:"$(Build.ArtifactStagingDirectory)/build_logs/nbgv_publish.binlog"
110+
- script: dotnet publish -c $(BuildConfiguration) -o ../nerdbank-gitversioning.npm/out/nbgv.cli/tools/netcoreapp3.1/any /bl:"$(Build.ArtifactStagingDirectory)/build_logs/nbgv_publish.binlog"
111111
displayName: Publish nbgv tool
112112
workingDirectory: src/nbgv
113113

@@ -323,21 +323,16 @@ stages:
323323
pool:
324324
vmImage: $(imageName)
325325
steps:
326-
- task: UseDotNet@2
327-
displayName: Install .NET Core 2.1 runtime
328-
inputs:
329-
packageType: runtime
330-
version: 2.1.x
331326
- task: UseDotNet@2
332327
displayName: Install .NET Core 3.1 runtime
333328
inputs:
334329
packageType: runtime
335330
version: 3.1.x
336331
- task: UseDotNet@2
337-
displayName: Install .NET Core 5.0.202 SDK
332+
displayName: Install .NET Core 5.0.401 SDK
338333
inputs:
339334
packageType: sdk
340-
version: 5.0.202
335+
version: 5.0.401
341336
- script: dotnet --info
342337
displayName: Show dotnet SDK info
343338
- bash: |

global.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"sdk": {
3-
"version": "5.0.202"
3+
"version": "5.0.401",
4+
"rollForward": "patch",
5+
"allowPrerelease": false
46
}
57
}

src/NerdBank.GitVersioning.Benchmarks/Nerdbank.GitVersioning.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
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;netcoreapp2.1;net5.0</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
55
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net461</TargetFrameworks>
66
<OutputType>Exe</OutputType>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

src/Nerdbank.GitVersioning.Tasks/Nerdbank.GitVersioning.Tasks.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
3+
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55

66
<NuSpecFile>Nerdbank.GitVersioning.nuspec</NuSpecFile>
@@ -26,7 +26,7 @@
2626

2727
<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
2828
<PropertyGroup>
29-
<BuildSubDir Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">MSBuildCore\</BuildSubDir>
29+
<BuildSubDir Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">MSBuildCore\</BuildSubDir>
3030
<BuildSubDir Condition=" '$(TargetFramework)' == 'net461' ">MSBuildFull\</BuildSubDir>
3131
</PropertyGroup>
3232
<Error Text="Unrecognized TargetFramework" Condition=" '$(BuildSubDir)' == '' " />
@@ -83,7 +83,7 @@
8383
<ItemGroup Condition="'$(TargetFramework)' == 'net461' ">
8484
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.9.20" />
8585
</ItemGroup>
86-
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
86+
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
8787
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.9.20" />
8888
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
8989
</ItemGroup>

src/Nerdbank.GitVersioning.Tasks/Nerdbank.GitVersioning.nuspec

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ IMPORTANT: The 3.x release may produce a different version height than prior maj
4040
<file src="$LibGit2SharpNativeBinaries$runtimes\win-x86\native\git2-6777db8.dll" target="build\MSBuildFull\lib\win32\x86\git2-6777db8.dll" />
4141

4242
<file src="$LibGit2SharpNativeBinaries$libgit2\LibGit2Sharp.dll.config" target="build\MSBuildCore\LibGit2Sharp.dll.config" />
43-
<file src="$BaseOutputPath$netcoreapp2.1\LibGit2Sharp.dll" target="build\MSBuildCore\LibGit2Sharp.dll" />
44-
<file src="$BaseOutputPath$netcoreapp2.1\Microsoft.DotNet.PlatformAbstractions.dll" target="build\MSBuildCore\Microsoft.DotNet.PlatformAbstractions.dll" />
45-
<file src="$BaseOutputPath$netcoreapp2.1\NerdBank.GitVersioning.dll" target="build\MSBuildCore\NerdBank.GitVersioning.dll" />
46-
<file src="$BaseOutputPath$netcoreapp2.1\Nerdbank.GitVersioning.Tasks.dll" target="build\MSBuildCore\Nerdbank.GitVersioning.Tasks.dll" />
47-
<file src="$BaseOutputPath$netcoreapp2.1\Newtonsoft.Json.dll" target="build\MSBuildCore\Newtonsoft.Json.dll" />
48-
<file src="$BaseOutputPath$netcoreapp2.1\System.Text.Json.dll" target="build\MSBuildCore\System.Text.Json.dll" />
49-
<file src="$BaseOutputPath$netcoreapp2.1\Validation.dll" target="build\MSBuildCore\Validation.dll" />
50-
<file src="$BaseOutputPath$netcoreapp2.1\System.Runtime.CompilerServices.Unsafe.dll" target="build\MSBuildCore\System.Runtime.CompilerServices.Unsafe.dll" />
43+
<file src="$BaseOutputPath$netcoreapp3.1\LibGit2Sharp.dll" target="build\MSBuildCore\LibGit2Sharp.dll" />
44+
<file src="$BaseOutputPath$netcoreapp3.1\Microsoft.DotNet.PlatformAbstractions.dll" target="build\MSBuildCore\Microsoft.DotNet.PlatformAbstractions.dll" />
45+
<file src="$BaseOutputPath$netcoreapp3.1\NerdBank.GitVersioning.dll" target="build\MSBuildCore\NerdBank.GitVersioning.dll" />
46+
<file src="$BaseOutputPath$netcoreapp3.1\Nerdbank.GitVersioning.Tasks.dll" target="build\MSBuildCore\Nerdbank.GitVersioning.Tasks.dll" />
47+
<file src="$BaseOutputPath$netcoreapp3.1\Newtonsoft.Json.dll" target="build\MSBuildCore\Newtonsoft.Json.dll" />
48+
<file src="$BaseOutputPath$netcoreapp3.1\System.Text.Json.dll" target="build\MSBuildCore\System.Text.Json.dll" />
49+
<file src="$BaseOutputPath$netcoreapp3.1\Validation.dll" target="build\MSBuildCore\Validation.dll" />
5150

5251
<file src="build\Nerdbank.GitVersioning.targets" target="build\Nerdbank.GitVersioning$LKGSuffix$.targets" />
5352
<file src="build\Nerdbank.GitVersioning.Common.targets" target="build\Nerdbank.GitVersioning.Common.targets" />

src/nerdbank-gitversioning.npm/ts/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const nbgvPath = 'nbgv.cli';
55

66
export function getNbgvCommand(dotnetCommand?: string): string {
77
var command = dotnetCommand || 'dotnet';
8-
const nbgvDll = path.join(__dirname, nbgvPath, "tools", "netcoreapp2.1", "any", "nbgv.dll");
8+
const nbgvDll = path.join(__dirname, nbgvPath, "tools", "netcoreapp3.1", "any", "nbgv.dll");
99
return `${command} "${nbgvDll}"`;
1010
}

0 commit comments

Comments
 (0)