Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable trimming in .NET 6 targets #1906

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Enable trimming in .NET 6 targets #1906

merged 1 commit into from
Mar 30, 2023

Conversation

idg10
Copy link
Collaborator

@idg10 idg10 commented Mar 30, 2023

Resolves #1683

Note that most of the query-space features (IQbservable etc.) do not mix well with trimming, so these are annotated as requiring external code.

Also, although the trimming attributes do provide a way to declare that a type's public events will be used, the way in which the reflection-driven FromEvent code paths invoke delegates seems to be something that the trimmability analyzers can't understand. So these members are also annotated as being problematic for trimming.

Add annotations for non-trim-compatible features
@idg10 idg10 marked this pull request as ready for review March 30, 2023 15:51
@idg10 idg10 merged commit e7c8125 into main Mar 30, 2023
@idg10 idg10 deleted the feature/enable-trimming branch March 30, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Trim
2 participants