Skip to content

Consider turning off serialization discovery by default #2924

@sbomer

Description

@sbomer

#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?

@MichalStrehovsky @vitek-karas @agocke

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions