From 52190a3a3de6ef9a556583cbcb2381073e7197bc Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Sat, 4 Dec 2021 12:00:46 -0800 Subject: [PATCH] Enabling NuGet package validation (#2618) --- .../CompatibilitySuppressions.xml | 104 ++++++++++++++++++ Src/Newtonsoft.Json/Newtonsoft.Json.csproj | 7 ++ 2 files changed, 111 insertions(+) create mode 100644 Src/Newtonsoft.Json/CompatibilitySuppressions.xml diff --git a/Src/Newtonsoft.Json/CompatibilitySuppressions.xml b/Src/Newtonsoft.Json/CompatibilitySuppressions.xml new file mode 100644 index 000000000..64d04acc5 --- /dev/null +++ b/Src/Newtonsoft.Json/CompatibilitySuppressions.xml @@ -0,0 +1,104 @@ + + + + + CP0001 + T:Newtonsoft.Json.Serialization.Func`1 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Func`2 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Func`3 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Func`4 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Func`5 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Action + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Action`2 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Action`3 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.Serialization.Action`4 + lib/net20/Newtonsoft.Json.dll + lib/net35/Newtonsoft.Json.dll + + + + CP0001 + T:System.Runtime.Serialization.Formatters.FormatterAssemblyStyle + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.SerializationBinder + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + + CP0001 + T:Newtonsoft.Json.TraceLevel + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + + + CP0007 + T:Newtonsoft.Json.Serialization.DefaultSerializationBinder + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + + + CP0002 + M:Newtonsoft.Json.Serialization.ITraceWriter.Trace(Newtonsoft.Json.TraceLevel,System.String,System.Exception) + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + + CP0002 + M:Newtonsoft.Json.Serialization.MemoryTraceWriter.Trace(Newtonsoft.Json.TraceLevel,System.String,System.Exception) + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + + + CP0006 + M:Newtonsoft.Json.Serialization.ITraceWriter.Trace(System.Diagnostics.TraceLevel,System.String,System.Exception) + lib/netstandard1.3/Newtonsoft.Json.dll + lib/netstandard2.0/Newtonsoft.Json.dll + + \ No newline at end of file diff --git a/Src/Newtonsoft.Json/Newtonsoft.Json.csproj b/Src/Newtonsoft.Json/Newtonsoft.Json.csproj index 6f4bea65f..fd834d77a 100644 --- a/Src/Newtonsoft.Json/Newtonsoft.Json.csproj +++ b/Src/Newtonsoft.Json/Newtonsoft.Json.csproj @@ -33,6 +33,13 @@ snupkg Newtonsoft.Json.ruleset true + + true + 13.0.1 + + $(NoWarn);CP0003