Aspire

What's New in Aspire 17

NimblePros Blog
Aspire

Aspire 17 shipped on November 17 and changes how a C# AppHost is put together: the special SDK and generated Projects.* classes give way to AddDotnetProject and a CLI-supplied dashboard. It is a large release that requires migration work on existing AppHosts and raises the baseline to .NET 10.

Key points

  • Aspire.AppHost.Sdk is obsolete and reports ASPIRE012; an AppHost becomes a plain Microsoft.NET.Sdk project.
  • AddDotnetProject("api", "../Api/Api.csproj") replaces AddProject<Projects.Api>; all six AddProject overloads and AddCSharpApp are obsolete.
  • Paths are relative to the AppHost directory and accept .csproj, .fsproj, .vbproj, a single-project folder or a .cs file.
  • The minimum is .NET 10 for AppHosts and Aspire library packages; orchestrated services may still target earlier versions.
  • The dashboard and DCP now come from the Aspire CLI, found on PATH or acquired through dnx.
  • The release adds environment-scoped aspire secret commands, shell completion, Mermaid graph export and a preview tray app.

Why it matters

The teams that feel this immediately are the ones with a large AppHost: every AddProject call has a successor that returns a different resource type, so helper and extension methods written against ProjectResource need rework. The recommended fix — constraining on IResourceWithEnvironment or IResourceWithEndpoints — is a design decision, not a rename, and a quick find-and-replace will leave debt behind.

Check three things before upgrading: the AppHost targets .NET 10; the CI agent can reach a feed for dnx, since the dashboard and DCP now come from the CLI; and no script edits .NET user-secrets directly, because secrets move under ~/.aspire/secrets/. Azure Functions and MAUI resources stay on the old model for now, so a mixed AppHost is normal mid-migration.

Real-world use

  • Watching a multi-service app with a Blazor front end, a C# API and PostgreSQL on one dashboard view
  • Grouping resources by team or subsystem tags to navigate enterprise apps with dozens of services
  • A platform team shipping its own templates, NuGet integration feed and agent plugins from one Git-backed source
  • Keeping track of several AppHosts running in parallel terminals through the tray companion

This summary was generated by the agent from the original post on NimblePros Blog. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message