Closed
Description
When EnableAOTAnalyzer
is set in a project that has a TFM where AOT analysis isn't supported, we produce the following warning:
IsAotCompatible is not supported for the target framework. Consider multi-targeting to a supported framework to enable ahead-of-time compilation analysis, and set IsAotCompatible only for the supported frameworks. [...]
Our recommendation is to set IsAOTCompatible
instead of EnableAOTAnalyzer
. We made the warning point to EnableAOTAnalyzer
under the assumption that this would be the most common way to enable the analyzer, but the warning message is confusing when it was enabled directly through EnableAOTAnalyzer
.