Skip to content

[release/11.0.1xx] Defer package help to the managed CLI in AOT mode - #56421

Merged
baronfel merged 1 commit into
release/11.0.1xxfrom
backport/pr-56417-to-release/11.0.1xx
Sep 28, 2026
Merged

baronfel merged 1 commit into
release/11.0.1xxfrom
backport/pr-56417-to-release/11.0.1xx

Conversation

@baronfel

@baronfel baronfel commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Manual backport of #56417 to release/11.0.1xx. The automatic backport failed because of merge conflicts.

Summary

The dotnet CLI's AOT mode hid help output for package-management-related commands due to a gap in the fallback logic that delegated to the managed CLI implementation.

Customer Impact

Customers that were looking for information about package-related commands could not see it until/unless they knew to run the non-AOT CLI via setting an environment variable. The commands themselves would work, just help output was missing.

Regression?

Yes, since 11 preview 7.

Testing

New tests have been added to the AOT parser to ensure that the managed fallback is used when these commands are requested at all.

Risk

Low - we already use this mechanism for other commands that need managed fallback at this point in time.

Manual backport of #56417.

In AOT mode, help for the package subtree is now rendered by the managed CLI,
which adds NuGet-contributed subcommands such as 'package update'. Help for
the nuget tree is already forwarded to the NuGet CLI in both modes.

Conflict resolution: this branch lacks the AOT 'test --test-modules' tests
adjacent to the insertion point; only the two new tests were kept.

(cherry picked from commit 61ecee1)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 16:05
@baronfel
baronfel requested a review from a team as a code owner September 28, 2026 16:05
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@baronfel

Copy link
Copy Markdown
Member Author

/tactics

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.

Copilot review overview

🔵 Needs a closer look

Add integration coverage confirming package --help and package update --help use the managed CLI.

Review effort: Lite
Findings: None

What changed in this PR

Backports AOT help handling so dotnet package help is delegated to the managed CLI.

Changes:

  • Defers package subtree help in AOT mode.
  • Adds parser regression tests for package and NuGet help handling.
  • Tests do not yet verify user-visible managed fallback output.
File Summary
test/​dotnet-aot.Tests/​AotParserTests.cs Adds parser-level coverage; needs an integration test for actual help output.
src/​Cli/​dotnet/​Parser.cs Registers package for managed CLI help fallback.

@baronfel
baronfel enabled auto-merge September 28, 2026 16:41
@rbhanda rbhanda added this to the 11.0.0 milestone Sep 28, 2026
@baronfel
baronfel merged commit 23c9f3c into release/11.0.1xx Sep 28, 2026
26 checks passed
@baronfel
baronfel deleted the backport/pr-56417-to-release/11.0.1xx branch September 28, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants