Skip to content

Warn TS AppHost users to run aspire update --self first in 13.4 release notes#1067

Merged
mitchdenny merged 2 commits into
release/13.4from
mitchdenny/ts-upgrade-self-warning
May 26, 2026
Merged

Warn TS AppHost users to run aspire update --self first in 13.4 release notes#1067
mitchdenny merged 2 commits into
release/13.4from
mitchdenny/ts-upgrade-self-warning

Conversation

@mitchdenny
Copy link
Copy Markdown
Member

What

Adds a caution Aside to the Upgrade to Aspire 13.4 section of the 13.4 "What's new" page, and strengthens the Migration from Aspire 13.3 to 13.4 step list, calling out that TypeScript AppHost users on 13.3.x must run aspire update --self before aspire update.

Why

For TypeScript AppHost projects on Aspire 13.3.x, running aspire update before aspire update --self fails mid-flight with:

❌ An unexpected error occurred: No code generator found for language: TypeScript

The 13.3.x CLI bundles an apphost server that cannot load the 13.4 Aspire.Hosting.CodeGeneration.TypeScript assembly (new types in Aspire.TypeSystem cause ReflectionTypeLoadException during code-generator discovery). Package restore succeeds, aspire.config.json is rewritten to point at 13.4, then TypeScript SDK regeneration crashes — leaving the project in a partially-upgraded, unrunnable state where aspire run and aspire restore also fail until aspire update --self is run.

Tracking issue: microsoft/aspire#17077. The CLI-side fix (microsoft/aspire#17100) is in main and will ship with 13.4, but was not backported to release/13.3, so 13.3.x stable users will hit this until they update the CLI.

Repro (verified today against 13.3.5 stable + 13.4.0-preview.1.26275.2 daily)

  1. Install stable CLI (13.3.5).
  2. aspire new aspire-ts-starter.
  3. Install daily CLI side-by-side.
  4. aspire update --channel daily (stable CLI) → fails with the error above; aspire.config.json SDK version is bumped to 13.4.0-preview.1.26275.2 while CLI is still 13.3.5; subsequent aspire run also fails.

Workaround in the new Aside: run aspire update --self first.

Diff

For TypeScript AppHost projects on Aspire 13.3.x, running `aspire update`
before `aspire update --self` fails mid-flight with
"No code generator found for language: TypeScript" because the 13.3.x CLI
bundles an apphost server that cannot load the 13.4 TypeScript code generator.
The failure leaves `aspire.config.json` pointing at 13.4 packages while the
CLI is still 13.3.x, which breaks `aspire run` and `aspire restore` too.

Add a caution `Aside` to the 13.4 "Upgrade to Aspire 13.4" section and
strengthen the migration step list to call out that `aspire update --self`
is required for TypeScript AppHost users on 13.3.x. Links to
microsoft/aspire#17077 for background.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 26, 2026 02:19
@mitchdenny mitchdenny requested a review from IEvangelist as a code owner May 26, 2026 02:19
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 Aspire 13.4 “What’s new” documentation to prevent TypeScript AppHost users on 13.3.x from hitting a known broken upgrade sequence by emphasizing that the CLI must be self-updated before upgrading project packages.

Changes:

  • Add a caution <Aside> in the “Upgrade to Aspire 13.4” section specifically for TypeScript AppHost users, describing the failure mode and required command order.
  • Strengthen the “Migration from Aspire 13.3 to 13.4” step list to explicitly call out aspire update --self as required for TypeScript AppHosts (with a link to microsoft/aspire#17077).
Show a summary per file
File Description
src/frontend/src/content/docs/whats-new/aspire-13-4.mdx Adds TypeScript-specific upgrade caution and clarifies the migration step ordering to avoid partially-upgraded states.

Copilot's findings

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

stable version.
</Aside>

<Aside type="caution" title="TypeScript AppHost users: run `aspire update --self` first">
❌ An unexpected error occurred: No code generator found for language: TypeScript
```

The 13.3.x CLI bundles an apphost server that cannot load the 13.4 TypeScript
Copy link
Copy Markdown
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — content is accurate, MDX is well-formed, and the warning will save TS AppHost users real pain. Please address the two existing review comments before merging (backtick rendering in the Aside title, and "apphost" → "AppHost" capitalization).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mitchdenny mitchdenny merged commit 7c57e52 into release/13.4 May 26, 2026
9 checks passed
@mitchdenny mitchdenny deleted the mitchdenny/ts-upgrade-self-warning branch May 26, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants