Skip to content

Commit

Permalink
System.Text.Json.Serialization.Converters.EnumConverterFactory warnin…
Browse files Browse the repository at this point in the history
…g is gone
  • Loading branch information
jonathanpeppers committed Jan 23, 2025
1 parent dcc9416 commit 77c47dc
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,6 @@ public static void AssertWarnings(this List<WarningsPerFile> actualWarnings, Lis
// IMPORTANT: Always store expected File information as a relative path to the repo ROOT
private static readonly List<WarningsPerFile> expectedNativeAOTWarnings = new()
{
// NOTE: this one is only expected when rooting all assemblies
new WarningsPerFile
{
File = "/_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverterFactory.cs",
WarningsPerCode = new List<WarningsPerCode>
{
new WarningsPerCode
{
Code = "IL3050",
Messages = new List<string>
{
"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.",
}
},
}
},
};

#region Utility methods for generating the list of expected warnings
Expand Down

0 comments on commit 77c47dc

Please sign in to comment.