Skip to content

DOTNET_CLI_ENABLEAOT: enabled by default on all platforms#54735

Open
baronfel wants to merge 2 commits into
mainfrom
naot-cli-envvar-all-platforms
Open

DOTNET_CLI_ENABLEAOT: enabled by default on all platforms#54735
baronfel wants to merge 2 commits into
mainfrom
naot-cli-envvar-all-platforms

Conversation

@baronfel

@baronfel baronfel commented Jul 10, 2026

Copy link
Copy Markdown
Member

Follow-up to #54649.

The command-line parsing crash (dotnet/command-line-api#2812) that had kept the DOTNET_CLI_ENABLEAOT fast path disabled by default on macOS and Linux has been fixed upstream (dotnet/command-line-api#2820) and has flowed into the .NET SDK (via System.CommandLine 3.0.0-preview.7.26359.117).

This updates the note so it states the fast path is enabled by default (true) on all platforms starting in .NET 11 Preview 7, and removes the macOS/Linux-disabled caveat and the now-obsolete opt-in-early guidance.

Tracks the SDK change in dotnet/sdk#55144 and the breaking-change issue #54650.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-environment-variables.md docs/core/tools/dotnet-environment-variables

The command-line parsing crash (dotnet/command-line-api#2812) that had kept the AOT CLI fast path disabled by default on macOS and Linux has been fixed upstream (dotnet/command-line-api#2820) and flowed into the SDK. Update the note to state the default is now true on all platforms.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the .NET CLI environment variable reference to reflect that DOTNET_CLI_ENABLEAOT’s NativeAOT fast path is enabled by default across Windows, macOS, and Linux starting with .NET 11 Preview 7, aligning the docs with the upstream fix and SDK behavior.

Changes:

  • Updates the DOTNET_CLI_ENABLEAOT note to state the fast path is enabled by default on all platforms starting in .NET 11 Preview 7.
  • Removes the prior macOS/Linux-disabled caveat and the early opt-in guidance that’s no longer applicable.

Comment thread docs/core/tools/dotnet-environment-variables.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants