Is there a symbol for aot? #109005
-
I'd like to write some code excluded for AOT, wondering if there's something like |
Beta Was this translation helpful? Give feedback.
Answered by
huoyaoyuan
Oct 18, 2024
Replies: 1 comment 3 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
WeihanLi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
RuntimeFeature.IsDynamicCodeSupported
as a feature guard. Preprocessors won't work here because AOT uses the same C# compilation.