Skip to content

feat(aspire)!: upgrade to Aspire 17 and adopt Project v2 - #1689

Merged
BenjaminMichaelis merged 4 commits into
mainfrom
bmichaelis-special-fishstick
Nov 18, 2026
Merged

BenjaminMichaelis merged 4 commits into
mainfrom
bmichaelis-special-fishstick

Conversation

@BenjaminMichaelis

Copy link
Copy Markdown
Member

Upgrade the local-development AppHost to Aspire 17 using the CLI and adopt the new .NET project resource model. Production deployment remains on the existing Docker/CI pipeline.

Changes

  • Align Aspire packages with 17.0.0 and pin the CLI version in aspire.config.json.
  • Replace the obsolete Aspire.AppHost.Sdk with Microsoft.NET.Sdk and explicit hosting packages.
  • Migrate Web registration and the journey fixture to AddDotnetProject / DotnetProjectResource, preserving database wiring and migration ordering.
  • Upgrade the dev-only Ollama integration to 17.0.0-beta.1052.
  • Read the Copilot setup CLI version from aspire.config.json; document Mermaid resource graphs, Project v2 rebuilds, and Aspire 17's agent plugin setup. Keep the existing checked-in agent skills.

Compatibility

BREAKING CHANGE: The shared Hosting extensions now return and accept IResourceBuilder<DotnetProjectResource> instead of IResourceBuilder<ProjectResource>. Consuming aggregate AppHosts must reference Aspire.Hosting.Dotnet and update explicitly typed callers.

Project v2 does not support aspire run --watch; use the documented resource rebuild workflow. The Ollama prerelease is intentional and limited to local development.

Verification

  • AppHost/test project builds with zero warnings and errors.
  • All 28 AppHost tests pass, including Docker-backed smoke tests and browser journeys.
  • Isolated CLI startup reaches healthy Web and Ollama model resources; the existing qwen2.5-coder:7b model successfully generates a response.
  • Mermaid graph output works. The verification AppHost was stopped without deleting persistent volumes.

Update the Aspire CLI and packages to 17.0.0, replace the obsolete Aspire.AppHost.Sdk with Microsoft.NET.Sdk plus Aspire.Hosting.AppHost, and register the Web resource with AddDotnetProject. Copilot setup now reads the CLI version from aspire.config.json, and docs cover Project v2 rebuilds, Mermaid resource graphs, and the Aspire 17 agent init plugin model.

BREAKING CHANGE: EssentialCSharp.Web.Hosting extensions now use IResourceBuilder<DotnetProjectResource> instead of IResourceBuilder<ProjectResource>; consuming AppHosts must reference Aspire.Hosting.Dotnet and update their types.
Align the dev-only Ollama hosting integration with Aspire 17 using 17.0.0-beta.1052.
@BenjaminMichaelis
BenjaminMichaelis merged commit f299dd1 into main Nov 18, 2026
15 checks passed
@BenjaminMichaelis
BenjaminMichaelis deleted the bmichaelis-special-fishstick branch November 18, 2026 19:05
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.

1 participant