Skip to content

[CoreCLR] Setting RunAOTCompilation in project file runs MonoAOTCompiler even with CoreCLR runtime #11068

Closed

Description

@simonrozsival

A customer ran into a problem where their app failed to build after switching from Mono to CoreCLR. The cause was <RunAOTCompilation>true</RunAOTCompilation> in their Directory.Build.props.

We should make sure that Mono-related targets are skipped when the runtime is CoreCLR.

Ideally, we should also warn when a Mono-specific property is used in the project configuration. These properties should be removed by the developers or at least guarded with Condition="'$(UseMonoRuntime)' == 'true'".

Activity

  1. added this to the .NET 11 milestone on Apr 2, 2026
  2. added theissue type on Apr 2, 2026
  3. locked and limited conversation to collaborators on May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: CoreCLRIssues that only occur when using CoreCLR.

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions