Add breaking change: NativeAOT CLI command handling enabled by default - #55223
Merged
gewarren merged 3 commits intoAug 4, 2026
Merged
Conversation
Closed
1 task
… default Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update default behavior for NativeAOT CLI command handling
Add breaking change: NativeAOT CLI command handling enabled by default
Aug 4, 2026
gewarren
reviewed
Aug 4, 2026
gewarren
left a comment
Collaborator
There was a problem hiding this comment.
@copilot Please add a link to https://learn.microsoft.com/dotnet/core/tools/dotnet-environment-variables#dotnet_cli_enableaot in the appropriate places. But use a file-relative link instead of absolute URL.
… wording Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Contributor
Author
Added file-relative links to |
gewarren
approved these changes
Aug 4, 2026
gewarren
marked this pull request as ready for review
August 4, 2026 18:03
adegeo
approved these changes
Aug 4, 2026
gewarren
deleted the
copilot/breaking-change-nativeaot-cli-command-handling
branch
August 4, 2026 21:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting in .NET 11 Preview 7, the NativeAOT-compiled command-handling fast path for the
dotnetCLI is enabled by default on all platforms, controlled byDOTNET_CLI_ENABLEAOT(previously off by default). This adds the corresponding breaking change documentation.New article
docs/core/compatibility/sdk/11/native-cli-command-handling-enabled.mddescribing previous/new behavior, reason for change, and recommended opt-out (DOTNET_CLI_ENABLEAOT=false/0/no/off) via--- title/description/ms.date/ai-usagefrontmatter and standard breaking-change sections.Index updates
docs/core/compatibility/toc.ymlunder SDK and MSBuild for .NET 11.docs/core/compatibility/11.mdbreaking changes table.Verified, no change needed
docs/core/tools/dotnet-environment-variables.mdalready documents theDOTNET_CLI_ENABLEAOTPreview 7 default change.Internal previews