Update .NET 8 SDK (#2959)

This commit is contained in:
James Newton-King
2024-05-28 13:18:47 +08:00
committed by GitHub
parent b0d1d0b905
commit 4738a64817
6 changed files with 115 additions and 45 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<AutofacPackageVersion>4.6.2</AutofacPackageVersion>
<BenchmarkDotNetPackageVersion>0.10.10</BenchmarkDotNetPackageVersion>
<FSharpCorePackageVersion>4.2.3</FSharpCorePackageVersion>
<MicrosoftCodeAnalysisNetAnalyzersPackageVersion>6.0.0</MicrosoftCodeAnalysisNetAnalyzersPackageVersion>
<MicrosoftCodeAnalysisNetAnalyzersPackageVersion>8.0.0</MicrosoftCodeAnalysisNetAnalyzersPackageVersion>
<MicrosoftCSharpPackageVersion>4.3.0</MicrosoftCSharpPackageVersion>
<MicrosoftSourceLinkGitHubPackageVersion>1.0.0</MicrosoftSourceLinkGitHubPackageVersion>
<MicrosoftNETTestSdkPackageVersion>16.3.0</MicrosoftNETTestSdkPackageVersion>
@@ -173,6 +173,8 @@
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'">
<!-- Explicitly specify Microsoft.NETCore.App to fix vulnerability warnings -->
<PackageReference Include="Microsoft.NETCore.App" Version="2.1.30" />
<PackageReference Include="FSharp.Core" Version="$(FSharpCorePackageVersion)" />
<PackageReference Include="System.ObjectModel" Version="$(SystemObjectModelPackageVersion)" />
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="$(SystemRuntimeSerializationPrimitivesPackageVersion)" />
@@ -1,6 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--Types removed from lib/net35 which are present on lib/net20-->
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action`2</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action`3</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action`4</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Func`1</Target>
@@ -31,37 +55,6 @@
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action`2</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action`3</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.Action`4</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<!--Types which were removed from lib/netstandard2.0 but are present in lib/netstandard1.3-->
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:System.Runtime.Serialization.Formatters.FormatterAssemblyStyle</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:Newtonsoft.Json.SerializationBinder</Target>
@@ -74,31 +67,100 @@
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<!--Type inherits from Newtonsoft.Json.SerializationBinder in netstandard1.3 but not in netstandard2.0-->
<Suppression>
<DiagnosticId>CP0007</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.DefaultSerializationBinder</Target>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:System.Runtime.Serialization.Formatters.FormatterAssemblyStyle</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.JsonConvert.get_DefaultSettings</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.JsonSerializerSettings.get_ReferenceResolverProvider</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.JsonContract.get_DefaultCreator</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.JsonDictionaryContract.get_DictionaryKeyResolver</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.JsonObjectContract.get_ExtensionDataNameResolver</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.JsonProperty.get_SetIsSpecified</Target>
<Left>lib/net20/Newtonsoft.Json.dll</Left>
<Right>lib/net35/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.JsonSerializer.get_Binder</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.JsonSerializerSettings.get_Binder</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.ITraceWriter.get_LevelFilter</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<!--These members exist in netstandard1.3, but not on netstandard2.0-->
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.ITraceWriter.Trace(Newtonsoft.Json.TraceLevel,System.String,System.Exception)</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.MemoryTraceWriter.get_LevelFilter</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.MemoryTraceWriter.Trace(Newtonsoft.Json.TraceLevel,System.String,System.Exception)</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<!--Interface member got added in netstandard2.0-->
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>M:Newtonsoft.Json.Serialization.ITraceWriter.Trace(System.Diagnostics.TraceLevel,System.String,System.Exception)</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>P:Newtonsoft.Json.Serialization.ITraceWriter.LevelFilter</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0007</DiagnosticId>
<Target>T:Newtonsoft.Json.Serialization.DefaultSerializationBinder</Target>
<Left>lib/netstandard1.3/Newtonsoft.Json.dll</Left>
<Right>lib/netstandard2.0/Newtonsoft.Json.dll</Right>
</Suppression>
</Suppressions>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.400",
"version": "8.0.300",
"rollForward": "latestFeature"
}
}