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

Add example for the more common and confusing IL2111 cases #40789

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jtschuster
Copy link
Member

@jtschuster jtschuster commented May 7, 2024

Summary

While going through warnings I saw that this page only describes the trivial case but misses the more confusing case of annotations triggering the warning. I think it would be nice to add a bit more info about it.


Internal previews

📄 File 🔗 Preview link
docs/core/deploying/trimming/trim-warnings/il2111.md IL2111: Method with parameters or return value with 'DynamicallyAccessedMembersAttribute' is accessed via reflection. Trimmer cannot guarantee availability of the requirements of the method

Document confusing example of IL2111 warning.
@jtschuster jtschuster requested review from agocke and sbomer May 7, 2024 17:52
@jtschuster jtschuster requested a review from adegeo as a code owner May 7, 2024 17:53
@dotnet-bot dotnet-bot added this to the May 2024 milestone May 7, 2024
@jtschuster jtschuster changed the title Add more common and more confusing example for IL2111 Add example for the more common and confusing IL2111 cases May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants