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

Replace AotHelper.IsNativeAot with FeatureGuardAttribute #3692

Open
jamescrosswell opened this issue Oct 16, 2024 · 0 comments
Open

Replace AotHelper.IsNativeAot with FeatureGuardAttribute #3692

jamescrosswell opened this issue Oct 16, 2024 · 0 comments

Comments

@jamescrosswell
Copy link
Collaborator

We currently have our own bespoke implementaion of something that approximates what FeatureGuardAttribute does, to disable parts of our SDK in trimming/AOT scenarios at runtime.

net9.0 introduces a FeatureGuardAttribute that we should look at leveraging instead, to make this more easily identifiable and readable.

Note

We can also potentially use the FeatureSwitchDefinitionAttribute to define parts of the SDK that can be trimmed, to help users reduce the size of their apps. I'm not sure how that would work though - would need to play around with it to check...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant