Skip to content

build(deps): Upgrade Aspire to 17.0.0 - #384

Merged
mpaulosky merged 2 commits into
mainfrom
chore/aspire-17
Nov 29, 2026
Merged

mpaulosky merged 2 commits into
mainfrom
chore/aspire-17

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

Why

Aspire 17.0.0 makes Aspire.AppHost.Sdk and AddProject<T> obsolete, and its C# AppHost builds only with the Aspire CLI
bundle. Dependabot's bump (#383) can't build on its own, so this does the upgrade by hand, following the Blazor-Server
and auth0-management-app upgrades.

What changed

  • Directory.Packages.props: every Aspire.* package moves to 17.0.0, and Aspire.Hosting.AppHost and the new
    Aspire.Hosting.Dotnet are added. Aspire.Hosting.NodeJS, which nothing references, is removed.
  • src/AppHost/AppHost.csproj uses Microsoft.NET.Sdk with those two packages. Its ProjectReference to Web keeps the
    metadata the old SDK set on it, so the AppHost builds Web first without compiling against Web.dll (Web's Program
    would clash with the AppHost's).
  • src/AppHost/AppHost.cs starts Web with AddDotnetProject("web", "../Web/Web.csproj"). A new AppHost test checks
    that the path names src/Web/Web.csproj, now that the compiler no longer checks it.
  • .github/ci/expose-dnx.sh (new, run by prepare.sh in every CI job) puts the .NET SDK folder holding dnx on
    PATH, so the AppHost build can set up the Aspire CLI bundle. It refuses a folder inside the checkout or one that
    would split PATH. Its tests and a new prepare.sh test run in gate-checks.sh when either script changes.
  • .sandcastle/Dockerfile puts /usr/share/dotnet on PATH for the same reason.
  • docs/CONTRIBUTING.md lists the Aspire CLI, or dnx on PATH, as a prerequisite.

No new packages beyond Aspire's own: Aspire.Hosting.Dotnet is what replaces AddProject<T> in Aspire 17.

Verification

  • scripts/gate.sh passes: the Release build with warnings as errors, every test project, and the new shell tests.
  • The E2E tests ran through the AppHost (the tests needing Auth0 credentials skip without them).

Supersedes #383.


Generated by Claude Code

Moves the AppHost to Microsoft.NET.Sdk with Aspire.Hosting.AppHost and
Aspire.Hosting.Dotnet, starts Web with AddDotnetProject, and keeps the Web
ProjectReference from linking Web's assembly into the AppHost. CI puts the
SDK folder holding dnx on PATH (expose-dnx.sh) so the AppHost build can set
up the Aspire CLI bundle, and so does the Sandcastle image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KKGWRJ4yaSJzXpXr2Tte9d
@github-actions

Copy link
Copy Markdown
Contributor

Test Results Summary

660 tests   660 ✅  1m 22s ⏱️
  7 suites    0 💤
  7 files      0 ❌

Results for commit b2463e9.

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mpaulosky
mpaulosky marked this pull request as ready for review November 29, 2026 18:18
@mpaulosky
mpaulosky merged commit 973dc16 into main Nov 29, 2026
36 checks passed
@mpaulosky
mpaulosky deleted the chore/aspire-17 branch November 29, 2026 19:50
mpaulosky added a commit that referenced this pull request Nov 29, 2026
Automated release blog posts for #384, opened by the release workflow.
It holds every Release whose post isn't on main yet, rebuilt from main
on each run. The [skip-release] title marker keeps its merge from
starting another release.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants