Skip to content

Commit aa9e93e

Browse files
authored
[tests] On 9.0.4 theres no build warning for Syste.Text.json (dotnet#29243)
1 parent dc63d66 commit aa9e93e

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/BuildWarningsUtilities.cs

+1-19
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,7 @@ public static void AssertWarnings(this List<WarningsPerFile> actualWarnings, Lis
126126
#region Expected warning messages
127127

128128
// IMPORTANT: Always store expected File information as a relative path to the repo ROOT
129-
private static readonly List<WarningsPerFile> expectedNativeAOTWarnings = new()
130-
{
131-
// NOTE: this one is only expected when rooting all assemblies
132-
new WarningsPerFile
133-
{
134-
File = "/_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverterFactory.cs",
135-
WarningsPerCode = new List<WarningsPerCode>
136-
{
137-
new WarningsPerCode
138-
{
139-
Code = "IL3050",
140-
Messages = new List<string>
141-
{
142-
"System.Text.Json.Serialization.Converters.EnumConverterFactory.CreateConverter(Type,JsonSerializerOptions): Using member 'System.Text.Json.Serialization.Converters.EnumConverterFactory.Create(Type,EnumConverterOptions,JsonNamingPolicy,JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.",
143-
}
144-
},
145-
}
146-
},
147-
};
129+
private static readonly List<WarningsPerFile> expectedNativeAOTWarnings = new();
148130

149131
#region Utility methods for generating the list of expected warnings
150132

0 commit comments

Comments
 (0)