dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

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

Open sylveon opened this issue 6 months ago • 0 comments

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.

sylveon avatar Aug 26 '25 07:08 sylveon