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

Make Delegate.CreateDelegate trimming safe #47017

Merged
merged 2 commits into from
Jan 20, 2021
Merged

Conversation

eerhardt
Copy link
Member

The underlying code will find non-public methods on base types, but the current annotation won't preserve these methods. Use All annotation on the Type to ensure they are preserved.

Fix #46857

@eerhardt eerhardt added the linkable-framework Issues associated with delivering a linker friendly framework label Jan 14, 2021
@ghost
Copy link

ghost commented Jan 14, 2021

Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @tannergooding
See info in area-owners.md if you want to be subscribed.

Issue Details

The underlying code will find non-public methods on base types, but the current annotation won't preserve these methods. Use All annotation on the Type to ensure they are preserved.

Fix #46857

Author: eerhardt
Assignees: -
Labels:

area-System.Reflection, linkable-framework

Milestone: -

The underlying code will find non-public methods on base types, but the current annotation won't preserve these methods. Use All annotation on the Type to ensure they are preserved.

Fix dotnet#46857
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than Michal's comments, LGTM.

* Add comments around the use of 'All'
* Add a trimming test
@eerhardt
Copy link
Member Author

OSX failure is #47190

Android failure is #47185

@eerhardt eerhardt merged commit 708b2f7 into dotnet:master Jan 20, 2021
@eerhardt eerhardt deleted the Fix46857 branch January 20, 2021 00:04
@ghost ghost locked as resolved and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime linkable-framework Issues associated with delivering a linker friendly framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delegate.CreateDelegate is not trimming safe
4 participants