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
#1932 introduced heuristics to discover and preserve serialized types, for backwards compatibility in xamarin scenarios. The heuristics give no correctness guarantees and will not prevent warnings when using reflection-based serializers (but the xamarin SDK turns off trim warnings globally).
dotnet/runtime#72910 tracks porting this logic to NativeAot for parity with the linker. Could we instead turn off the serialization discovery (maybe with <TrimMode>full</TrimMode>) by default, and only use it for the xamarin scenarios?