From 7a7aa61a9466b50601ab06aded618239ee46d29f Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Tue, 17 Aug 2021 13:23:18 -0400 Subject: [PATCH 1/3] Update pinned compiler version The version that flows in automatically appears to still be old. We need to fix that, but in the meantime, we're a month out of date on the compiler. --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index 4265ca90427500..4e340620143bbf 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -18,7 +18,7 @@ true - 4.0.0-3.21376.12 + 4.0.0-4.21416.10 true false false From 827f60f97259fc941af30f50d071016914cf1ffb Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Tue, 17 Aug 2021 16:17:37 -0400 Subject: [PATCH 2/3] Suppress CS8969 warnings --- Directory.Build.props | 2 ++ src/libraries/System.Text.Json/src/System.Text.Json.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 2948ce2f529f05..9f7a610433bd1f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -270,6 +270,8 @@ strict;nullablePublicOnly true + + $(NoWarn),CS8969 portable true diff --git a/src/libraries/System.Text.Json/src/System.Text.Json.csproj b/src/libraries/System.Text.Json/src/System.Text.Json.csproj index 3a363de469a909..d18d2c01221d37 100644 --- a/src/libraries/System.Text.Json/src/System.Text.Json.csproj +++ b/src/libraries/System.Text.Json/src/System.Text.Json.csproj @@ -5,7 +5,7 @@ - + CS8969 enable true true From 2f8ed37554aa3e212cf7af3b29e0382273089774 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 18 Aug 2021 06:59:04 -0400 Subject: [PATCH 3/3] Change several dynamic tests to use typeof(object[]) --- .../Conformance.dynamic.dynamicType.basic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.Dynamic.Runtime/tests/Dynamic.DynamicType/Conformance.dynamic.dynamicType.basic.cs b/src/libraries/System.Dynamic.Runtime/tests/Dynamic.DynamicType/Conformance.dynamic.dynamicType.basic.cs index 480f6200208d30..9c4eb3000ae8b6 100644 --- a/src/libraries/System.Dynamic.Runtime/tests/Dynamic.DynamicType/Conformance.dynamic.dynamicType.basic.cs +++ b/src/libraries/System.Dynamic.Runtime/tests/Dynamic.DynamicType/Conformance.dynamic.dynamicType.basic.cs @@ -3392,7 +3392,7 @@ public static int MainMethod(string[] args) } ; - if (d.GetType() != typeof(dynamic[])) + if (d.GetType() != typeof(object[])) return 1; return 0; } @@ -3420,7 +3420,7 @@ public static int MainMethod(string[] args) } ; - if (d.GetType() != typeof(dynamic[])) + if (d.GetType() != typeof(object[])) return 1; return 0; } @@ -3456,7 +3456,7 @@ public static int MainMethod(string[] args) } ; - if (d.GetType() != typeof(dynamic[])) + if (d.GetType() != typeof(object[])) return 1; return 0; }