Repository navigation
[release/11.0.1xx] Restore localized first-run messages in the NativeAOT CLI - #56599
Merged
JeremyKuhne merged 1 commit intoOct 12, 2026
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: nagilson <[email protected]> Co-authored-by: Jeremy Kuhne <[email protected]> Co-authored-by: Marc Paine <[email protected]> (cherry picked from commit 57066b1)
|
Azure Pipelines: Successfully started running 2 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
marcpopMSFT
approved these changes
Oct 12, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused backport matches the approved upstream change and includes native-image and integration regression coverage.
0 open findings
What changed in this PR
Backports NativeAOT CLI localization support for first-run messages.
Changes:
- Applies managed CLI language and encoding setup in NativeAOT.
- Embeds Configurer satellite assemblies into the native image.
- Adds localized unit and end-to-end regression coverage.
| File | Description |
|---|---|
src/Cli/dotnet-aot/NativeEntryPoint.cs |
Initializes UI language before resource access. |
src/Cli/dotnet-aot/AotSourceFiles.props |
Includes encoding-restoration source. |
src/Cli/dotnet-aot/AotDependencies.props |
Supplies Configurer satellites to ILC. |
src/Cli/dotnet-aot/DESIGN.md |
Documents localized first-run behavior. |
test/dotnet-aot.Tests/NativeEntryPointTests.cs |
Tests localized NativeAOT execution. |
test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs |
Adds redist-backed German localization coverage. |
🧠 Review effort: Balanced
Member
|
/tactics |
JeremyKuhne
had a problem deploying
to
copilot-pat-pool
October 12, 2026 22:59 — with
GitHub Actions
Failure
This was referenced Oct 26, 2026
This branch had an error being deployed
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.
Backport of #55781 to
release/11.0.1xx.Cherry-picked squash commit
57066b1f1e885b1d84aa766c4b2a14def4500cc0with-x.Validation
dotnet-aot.Testsregression: 2 passed, 0 failed, 0 skippeddotnet-aotanddotnet-aot.Testsbuilds: succeeded with 0 warningswin-x64, Debug): succeededdotnet.Testsintegration test: 1 passed, 0 failed, 0 skippedTactics
Summary
The .NET 11 NativeAOT CLI handled first-run setup itself, so the welcome, telemetry and certificate messages appeared in English on localized systems while later command output was localized. The fix (backport of #55781, fixing #55744) detects the effective UI culture, including CLI language overrides, in
NativeEntryPoint.cs. For non-English first runs it defers to the managed CLI before any sentinel or setup state is written. English and subsequent runs keep the NativeAOT fast path. The change is small and targeted, so it suits servicing.Customer Impact
Users of the .NET 11 NativeAOT
dotnetCLI on non-English systems (for example German Windows) see unlocalized first-run messages. The messages are displayed but in the wrong language. No workaround is stated in the PR. Only the first invocation is affected.Regression?
Yes. It affects the .NET 11 NativeAOT CLI, which printed first-run messages in English where the managed CLI localized them. The specific introducing PR is not identified in the available context.
Testing
NativeEntryPointTestsindotnet-aot.Testsverify a German first run emits localized welcome and telemetry text. 2 tests passed.dotnet.Testsintegration test inGivenThatTheUserIsRunningDotNetForTheFirstTimepassed.dotnet-aotand test builds, the NativeAOT publish (win-x64, Debug) and the full Debug SDK build succeeded with 0 warnings.Risk
Low. The change is about 125 added lines across 6 files, mostly tests and design docs, with a 5-line change in the entry point and some build-props additions. It only affects first-run routing for non-English cultures. The English fast path is unchanged. The main edge case is culture detection, which the tests cover.