Updated to .NetCore 3.1

This commit is contained in:
TheJoKlLa 2021-09-25 14:49:11 +02:00
parent 5feef6ef4a
commit 10ac706a05
3 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Capnp</RootNamespace>
<LangVersion>8.0</LangVersion>
<Nullable>Enable</Nullable>

View File

@ -47,9 +47,11 @@ namespace Capnp
return thisDict.Remove(key);
}
#else
#pragma warning disable CS8601
#pragma warning disable CS8714
public static bool ReplacementTryRemove<K, V>(this Dictionary<K, V> thisDict, K key, out V value) => thisDict.Remove(key, out value);
#pragma warning restore CS8714
#pragma warning restore CS8601
#endif
/// <summary>

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>CapnpC</RootNamespace>
<LangVersion>7.1</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>