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

Added RequiresUnreferencedCode on non-trimmable code #1

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

jamescrosswell
Copy link
Collaborator

A lot of the methods in Ben.Demystifier make use of reflection and various other things that don't work with Trimming and AOT compilation. These methods have been decorated with RequiresUnreferencedCode attributes so that code making use of these can suppress the warnings where appropriate (in the .NET SDK for Sentry, for example, we can avoid calling these methods at runtime and then supress the warnings).

src/Ben.Demystifier/Internal/PortablePdbReader.cs Outdated Show resolved Hide resolved
src/Ben.Demystifier/TypeNameHelper.cs Outdated Show resolved Hide resolved
src/Ben.Demystifier/TypeNameHelper.cs Outdated Show resolved Hide resolved
@cleptric cleptric merged commit f02d44d into getsentry:main Oct 31, 2023
6 checks passed
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.

3 participants