You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateconststringValidationContextJustification="The DisplayName property is always statically initialized in the ValidationContext through this codepath.";
14
+
15
+
[UnconditionalSuppressMessage("Trimming","IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code",Justification=ValidationContextJustification)]
#pragma warning disable IL2026// Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code
42
57
// ValidationContext is not trim-friendly in codepaths that don't
43
58
// initialize an explicit DisplayName. We can suppress the warning here.
44
59
// Eventually, this can be removed when the code is updated to
45
60
// use https://github.com/dotnet/runtime/issues/113134.
#pragma warning restore IL2026// Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code
0 commit comments