Skip to content

[docs] Update aspire update docs: CLI version preflight check for guest AppHost projects#1013

Open
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.4from
docs/aspire-17100-guest-apphost-cli-check-5e5bec53d72473d5
Open

[docs] Update aspire update docs: CLI version preflight check for guest AppHost projects#1013
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.4from
docs/aspire-17100-guest-apphost-cli-check-5e5bec53d72473d5

Conversation

@aspire-repo-bot
Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#17100 by @sebastienros.

Targeting release/13.4 based on the source PR milestone 13.4.

Why this PR is needed

PR microsoft/aspire#17100 changed the behavior of aspire update for guest (non-C#) AppHost projects such as TypeScript AppHosts. When the target Aspire SDK version is newer than the running Aspire CLI, the command now prompts the user to update the CLI before proceeding with the project update. This prevents the project from being left in a broken state when the bundled code generator does not support the selected SDK version.

The existing aspire update command reference had no mention of this guest AppHost preflight behavior or the new user-visible prompts and messages.

What was changed

Updated src/frontend/src/content/docs/reference/cli/commands/aspire-update.mdx:

  • Added a new "Updating guest (non-C#) AppHost projects" section under the Description heading.
  • Documents the CLI version preflight check, the two new user-visible prompts (UpdateCliBeforeGuestProjectUpdatePrompt and ProjectUpdateSkippedAfterCliUpdateMessage), and the guidance to re-run aspire update after updating the CLI.
  • Added an Aside tip pointing users to aspire update --self as a proactive alternative.

Files modified

  • src/frontend/src/content/docs/reference/cli/commands/aspire-update.mdx (updated)

Generated by PR Documentation Check for issue #17100 · ● 44.7M ·

When aspire update targets a non-C# (guest) AppHost and the selected SDK
is newer than the running CLI, the command now prompts the user to update
the CLI first and skips the project update until they do.

Documents changes from microsoft/aspire#17100.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label May 19, 2026
@aspire-repo-bot aspire-repo-bot Bot requested a review from mitchdenny May 19, 2026 17:41
@IEvangelist IEvangelist marked this pull request as ready for review May 20, 2026 02:16
@IEvangelist IEvangelist self-requested a review as a code owner May 20, 2026 02:16
Copilot AI review requested due to automatic review settings May 20, 2026 02:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 aspire update CLI command reference to document the new preflight behavior when updating guest (non-C#) AppHost projects (for example, TypeScript AppHosts), where the CLI may prompt for a self-update before proceeding to avoid breaking the project.

Changes:

  • Added a new “Updating guest (non-C#) AppHost projects” section describing the CLI version preflight check and resulting behavior.
  • Documented the user-facing prompt/message and the need to re-run aspire update after updating the CLI.
  • Added a tip (Aside) recommending aspire update --self as a proactive step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant