Skip to content

Commit 2153355

Browse files
committed
Drop netcoreapp2.1 support
netcoreapp2.1 is no longer under LTS support by Microsoft and no one should be using it.
1 parent 14272ce commit 2153355

File tree

9 files changed

+20
-12
lines changed

9 files changed

+20
-12
lines changed

azure-pipelines/build_nonWindows.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@ steps:
66
arguments: --no-restore -c $(BuildConfiguration)
77

88
- task: DotNetCoreCLI@2
9-
displayName: Run MessagePack.Tests (netcoreapp2.1)
9+
displayName: Run MessagePack.Tests (netcoreapp3.1)
1010
inputs:
1111
command: test
1212
projects: tests/MessagePack.Tests/MessagePack.Tests.csproj
13-
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp2.1 -v n --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings"
14-
testRunTitle: netcoreapp2.1-$(Agent.JobName)
13+
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp3.1 -v n --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings"
14+
testRunTitle: netcoreapp3.1-$(Agent.JobName)
15+
16+
- task: DotNetCoreCLI@2
17+
displayName: Run MessagePack.Tests (net5.0)
18+
inputs:
19+
command: test
20+
projects: tests/MessagePack.Tests/MessagePack.Tests.csproj
21+
arguments: --no-build -c $(BuildConfiguration) -f net5.0 -v n --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings"
22+
testRunTitle: net5.0-$(Agent.JobName)
1523

1624
- bash: mono ~/.nuget/packages/xunit.runner.console/2.4.1/tools/net472/xunit.console.exe bin/MessagePack.Tests/$(BuildConfiguration)/net472/MessagePack.Tests.dll -html $(BUILD.ARTIFACTSTAGINGDIRECTORY)/build_logs/mono_testrun.html
1725
displayName: Run MessagePack.Tests (mono)

sandbox/MessagePack.Internal/MessagePack.Internal.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>netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
55
<DefineConstants>$(DefineConstants);SPAN_BUILTIN;MESSAGEPACK_INTERNAL</DefineConstants>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>

sandbox/PerfBenchmarkDotNet/PerfBenchmarkDotNet.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
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net472;net5.0</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
77
</PropertyGroup>

sandbox/PerfNetFramework/PerfNetFramework.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
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net472;net5.0</TargetFrameworks>
55
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
66
</PropertyGroup>
77
<ItemGroup>

sandbox/Sandbox/Sandbox.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>netcoreapp2.1</TargetFramework>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
77
</PropertyGroup>
88

src/MessagePack/MessagePack.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>netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net5.0</TargetFrameworks>
55
<NoWarn>$(NoWarn);CS0649</NoWarn>
66
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
77
<DefineConstants Condition=" '$(TargetFramework)' != 'netstandard2.0' ">$(DefineConstants);SPAN_BUILTIN</DefineConstants>
@@ -35,7 +35,7 @@
3535
<ItemGroup>
3636
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.2" PrivateAssets="all" />
3737
</ItemGroup>
38-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.1' ">
38+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
3939
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" />
4040
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
4141
<PackageReference Include="System.Reflection.Emit" Version="4.6.0" />

tests/MessagePack.AspNetCoreMvcFormatter.Tests/MessagePack.AspNetCoreMvcFormatter.Tests.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-
<TargetFramework>netcoreapp2.1</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
<CodeAnalysisRuleSet>..\MessagePack.Tests\MessagePack.Tests.ruleset</CodeAnalysisRuleSet>

tests/MessagePack.Internal.Tests/MessagePack.Internal.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
3+
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
44
<CodeAnalysisRuleSet>..\MessagePack.Tests\MessagePack.Tests.ruleset</CodeAnalysisRuleSet>
55
</PropertyGroup>
66

tests/MessagePack.Tests/MessagePack.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net472;netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
3+
<TargetFrameworks>net472;netcoreapp3.1;net5.0</TargetFrameworks>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<LangVersion>9.0</LangVersion>
66
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

0 commit comments

Comments
 (0)