Skip to content

Trimming warning for ObservableRecipient.IsActive is useless, and AOT warning is not helpful #1123

@sylveon

Description

@sylveon

The warning for ObservableRecipient.IsActive when using trimming does not contain any actionable info, and only warns about potential performance loss. Which means, in 99% of cases, it will be immediately suppressed. The warning should be removed and the performance implications of trimming should be documented elsewhere.

Additionally, the AOT warning should be smarter. It shows up and tells you it is AOT safe if __IMessengerExtensions is not trimmed, however there is no obvious way for a developer to know that. The source generator should force it to be rooted by itself, and this warning should be removed.

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