Перейти до вмісту

Upgrade Aspire

Цей контент ще не доступний вашою мовою.

Upgrading Aspire involves updating the Aspire CLI itself, the Aspire SDK, and all related packages in your solution. The aspire update command handles most of this for you, but you may also need to review breaking changes and update tooling extensions.

  1. Update the Aspire CLI to the latest version:

    Update the Aspire CLI
    aspire update --self
  2. Update your Aspire solution by running:

    Update your Aspire solution
    aspire update

    This command automatically:

    • Updates the Aspire.AppHost.Sdk version
    • Updates all Aspire NuGet packages to the latest version
    • Supports both regular projects and Central Package Management (CPM)

For more information, see aspire update command reference.

If you have the Aspire extension installed, you can update it to get the latest tooling support:

  1. Open VS Code
  2. Go to Extensions ( Command + Shift + X Control + Shift + X Control + Shift + X )
  3. Search for Aspire
  4. Click Update if an update is available

For more information, see Aspire extension for VS Code.

Remove the legacy workload (Aspire 8 only)

Section titled “Remove the legacy workload (Aspire 8 only)”

Still rocking the Aspire workload? No judgment here—we’ve all been there. 🕰️ Time to let it go and join us in the future!

Please remove the aspire workload with the following command:

Terminal window
dotnet workload uninstall aspire

After upgrading, run your application to ensure everything works as expected:

Run the Aspire application
aspire run