Skip to content

Commit

Permalink
Merge pull request MessagePack-CSharp#1175 from lg2de/NetCoreApp3
Browse files Browse the repository at this point in the history
Add target netcoreapp3.1
  • Loading branch information
AArnott authored Jan 31, 2021
2 parents 43e2aef + 0c41bcc commit 2328df7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/MessagePack/MessagePack.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<NoWarn>$(NoWarn);CS0649</NoWarn>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<DefineConstants Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">$(DefineConstants);SPAN_BUILTIN</DefineConstants>
<DefineConstants Condition=" '$(TargetFramework)' != 'netstandard2.0' ">$(DefineConstants);SPAN_BUILTIN</DefineConstants>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<LangVersion>8.0</LangVersion>

Expand Down Expand Up @@ -34,6 +34,8 @@

<ItemGroup>
<PackageReference Include="Roslyn.Diagnostics.Analyzers" Version="2.9.7" PrivateAssets="all" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'!='netcoreapp3.1'">
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" />
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
<PackageReference Include="System.Reflection.Emit" Version="4.6.0" />
Expand Down
2 changes: 1 addition & 1 deletion tests/MessagePack.Tests/MessagePack.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>net472;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>8.0</LangVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down

0 comments on commit 2328df7

Please sign in to comment.