Skip to content

Is there a symbol for aot? #109005

Answered by huoyaoyuan
WeihanLi asked this question in Q&A
Oct 18, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You can use RuntimeFeature.IsDynamicCodeSupported as a feature guard. Preprocessors won't work here because AOT uses the same C# compilation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@WeihanLi
Comment options

@am11
Comment options

@vitek-karas
Comment options

Answer selected by WeihanLi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants