From e8dae7e2234c481c50357555aab4a218b462495b Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Fri, 10 Jul 2026 18:35:20 -0500 Subject: [PATCH 1/2] DOTNET_CLI_ENABLEAOT: enabled by default on all platforms 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. --- docs/core/tools/dotnet-environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tools/dotnet-environment-variables.md b/docs/core/tools/dotnet-environment-variables.md index 141dcafcef2c3..cb7f3d1640081 100644 --- a/docs/core/tools/dotnet-environment-variables.md +++ b/docs/core/tools/dotnet-environment-variables.md @@ -335,7 +335,7 @@ Set this variable to control the fast path explicitly: - To disable it and route every invocation to the managed CLI, set the variable to `false`, `0`, `no`, or `off`. > [!NOTE] -> Starting in .NET 11 Preview 7, this fast path is enabled by default (`true`) on Windows. On macOS and Linux it's disabled by default because of a command-line parsing issue ([dotnet/command-line-api#2812](https://github.com/dotnet/command-line-api/issues/2812)): when the native CLI is loaded as a NativeAOT shared library, `Environment.GetCommandLineArgs()` returns an empty array on those platforms, which causes command-line parsing to throw. It will be enabled by default on macOS and Linux once that issue is resolved. In the meantime, you can opt in early on those platforms by setting the variable to a value that enables it. +> Starting in .NET 11 Preview 7, this fast path is enabled by default (`true`) on all platforms. To turn it off, set the variable to a value that disables it. ### `DOTNET_GENERATE_ASPNET_CERTIFICATE` From 8e83131ac721bb19f9f593a1b0006df619670336 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Sat, 11 Jul 2026 13:30:12 -0500 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/core/tools/dotnet-environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tools/dotnet-environment-variables.md b/docs/core/tools/dotnet-environment-variables.md index cb7f3d1640081..dbf03942662b8 100644 --- a/docs/core/tools/dotnet-environment-variables.md +++ b/docs/core/tools/dotnet-environment-variables.md @@ -335,7 +335,7 @@ Set this variable to control the fast path explicitly: - To disable it and route every invocation to the managed CLI, set the variable to `false`, `0`, `no`, or `off`. > [!NOTE] -> Starting in .NET 11 Preview 7, this fast path is enabled by default (`true`) on all platforms. To turn it off, set the variable to a value that disables it. +> Starting in .NET 11 Preview 7, this fast path is enabled by default (`true`) on all platforms. To disable it, set the variable to `false`, `0`, `no`, or `off`. ### `DOTNET_GENERATE_ASPNET_CERTIFICATE`