Skip to content

Warning caused by EnableAOTAnalyzer points to IsAotCompatible #34505

Closed
@sbomer

Description

@sbomer

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions