diff --git a/src/frontend/config/sidebar/docs.topics.ts b/src/frontend/config/sidebar/docs.topics.ts index dbbf52c7..167d4c21 100644 --- a/src/frontend/config/sidebar/docs.topics.ts +++ b/src/frontend/config/sidebar/docs.topics.ts @@ -74,7 +74,7 @@ export const docsTopics: StarlightSidebarTopicsUserConfig = { 'pt-PT': 'Versões anteriores', ru: 'Предыдущие версии', tr: 'Önceki sürümler', - uk: 'Попередні версії', + uk: 'Попeredні версії', 'zh-CN': '以前的版本', }, items: [ @@ -104,6 +104,28 @@ export const docsTopics: StarlightSidebarTopicsUserConfig = { }, ], }, + { + label: 'Upgrade Aspire', + slug: 'whats-new/upgrade-aspire', + translations: { + da: 'Opgrader Aspire', + de: 'Aspire aktualisieren', + en: 'Upgrade Aspire', + es: 'Actualizar Aspire', + fr: 'Mettre à jour Aspire', + hi: 'Aspire अपग्रेड करें', + id: 'Tingkatkan Aspire', + it: 'Aggiorna Aspire', + ja: 'Aspire をアップグレード', + ko: 'Aspire 업그레이드', + 'pt-BR': 'Atualizar Aspire', + 'pt-PT': 'Atualizar Aspire', + ru: 'Обновить Aspire', + tr: "Aspire'ı Yükselt", + uk: 'Оновити Aspire', + 'zh-CN': '升级 Aspire', + }, + }, ], translations: { da: 'Hvad er nyt', diff --git a/src/frontend/src/content/docs/whats-new/upgrade-aspire.mdx b/src/frontend/src/content/docs/whats-new/upgrade-aspire.mdx new file mode 100644 index 00000000..45ea2e64 --- /dev/null +++ b/src/frontend/src/content/docs/whats-new/upgrade-aspire.mdx @@ -0,0 +1,117 @@ +--- +title: Upgrade Aspire +description: Learn how to upgrade your Aspire projects to the latest version. +--- + +import { Aside, Steps } from '@astrojs/starlight/components'; +import { Kbd } from 'starlight-kbd/components'; +import LearnMore from '@components/LearnMore.astro'; +import OsAwareTabs from '@components/OsAwareTabs.astro'; + +Upgrading Aspire is simple using the **Aspire CLI**. Run `aspire update` and you're done. + + + +## Upgrade with the Aspire CLI + + + +1. **Update the Aspire CLI** to the latest version: + + ```bash + aspire update --self + ``` + + + +2. **Update your Aspire project** by running: + + ```bash + aspire update + ``` + + This command automatically: + + - Updates the `Aspire.AppHost.Sdk` version + - Updates all Aspire NuGet packages to the latest version + - Handles dependency resolution + - Supports both regular projects and Central Package Management (CPM) + + + + +For more information, see [`aspire update` command reference](/reference/cli/commands/aspire-update/). + + +## Upgrade with the Upgrade Assistant CLI + +The [Upgrade Assistant](https://learn.microsoft.com/dotnet/core/porting/upgrade-assistant-overview) is another option for upgrading Aspire projects. + + + +1. **Install the Upgrade Assistant** (if not already installed): + + ```bash + dotnet tool install -g upgrade-assistant + ``` + +2. **Run the upgrade** from your AppHost project directory: + + ```bash + upgrade-assistant upgrade + ``` + +3. **Select the Aspire upgrades** option when prompted and follow the interactive prompts. + + + +## Update the VS Code extension (optional) + +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** () +3. Search for **.NET Aspire** +4. Click **Update** if an update is available + + + + +For more information, see [Aspire extension for VS Code](/get-started/aspire-vscode-extension/). + + +## Breaking changes + +Review breaking changes for all versions between your current version and the target version. See the release notes in the [What's new](/whats-new/aspire-13-1/) section. + +## Remove the legacy workload (Aspire 8 only) + + + +The legacy **aspire workload** is no longer required and should be removed: + +```bash +dotnet workload uninstall aspire +``` + +## Verify the upgrade + +After upgrading, run your application to ensure everything works as expected: + +```bash title="Run the Aspire application" +aspire run +``` + +## Need help? + +- 🆘 Stuck? [Join the Discord community](https://discord.com/invite/raNPcaaSj8) for real-time support +- 🐛 Found a bug? [File a GitHub issue](https://github.com/dotnet/aspire/issues/new/choose) +- 👀 Review [setup and tooling](/get-started/setup-and-tooling/) for configuration tips