Skip to content

Commit ebf7a95

Browse files
CopilotJamesNK
andauthored
Update Aspire documentation from version 9.5.0 to 9.5.1 (#4985)
* Initial plan * Update Aspire documentation from version 9.5.0 to 9.5.1 Co-authored-by: JamesNK <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: JamesNK <[email protected]>
1 parent aa37354 commit ebf7a95

File tree

5 files changed

+38
-38
lines changed

5 files changed

+38
-38
lines changed

docs/deployment/aspire-deploy/aca-deployment-aspire-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To configure your project for Azure Container Apps deployment, add a package ref
5656
```xml
5757
<Project Sdk="Microsoft.NET.Sdk">
5858

59-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
59+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
6060

6161
<PropertyGroup>
6262
<OutputType>Exe</OutputType>
@@ -67,8 +67,8 @@ To configure your project for Azure Container Apps deployment, add a package ref
6767
</PropertyGroup>
6868

6969
<ItemGroup>
70-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
71-
<PackageReference Include="Aspire.Hosting.Azure.AppContainers" Version="9.5.0" />
70+
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
71+
<PackageReference Include="Aspire.Hosting.Azure.AppContainers" Version="9.5.1" />
7272
</ItemGroup>
7373

7474
</Project>

docs/fundamentals/app-host-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The AppHost project handles running all of the projects that are part of the Asp
5151
```xml
5252
<Project Sdk="Microsoft.NET.Sdk">
5353

54-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
54+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
5555

5656
<PropertyGroup>
5757
<OutputType>Exe</OutputType>
@@ -60,7 +60,7 @@ The AppHost project handles running all of the projects that are part of the Asp
6060
</PropertyGroup>
6161

6262
<ItemGroup>
63-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
63+
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
6464
</ItemGroup>
6565

6666
<!-- Omitted for brevity -->

docs/fundamentals/dotnet-aspire-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The [📦 Aspire.AppHost.Sdk](https://www.nuget.org/packages/Aspire.AppHost.Sdk)
1616
```xml
1717
<Project Sdk="Microsoft.NET.Sdk">
1818

19-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
19+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
2020

2121
<PropertyGroup>
2222
<OutputType>Exe</OutputType>
@@ -25,7 +25,7 @@ The [📦 Aspire.AppHost.Sdk](https://www.nuget.org/packages/Aspire.AppHost.Sdk)
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
28+
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
2929
</ItemGroup>
3030

3131
<!-- Omitted for brevity -->

docs/get-started/upgrade-to-aspire-9.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: Upgrade to Aspire 9.5.0
3-
description: Learn how to upgrade all your Aspire projects to Aspire 9.5.0.
2+
title: Upgrade to Aspire 9.5.1
3+
description: Learn how to upgrade all your Aspire projects to Aspire 9.5.1.
44
ms.date: 10/01/2025
55
zone_pivot_groups: dev-environment
66
---
77

8-
# Upgrade to Aspire 9.5.0
8+
# Upgrade to Aspire 9.5.1
99

10-
In this article, you learn the steps involved in updating your existing Aspire projects to the latest version: Aspire 9.5.0. There are a few ways in which you can update your projects to Aspire 9.5.0:
10+
In this article, you learn the steps involved in updating your existing Aspire projects to the latest version: Aspire 9.5.1. There are a few ways in which you can update your projects to Aspire 9.5.1:
1111

12-
- Manually upgrade your projects to Aspire 9.5.0.
13-
- Use the **Upgrade Assistant** to upgrade your projects to Aspire 9.5.0.
12+
- Manually upgrade your projects to Aspire 9.5.1.
13+
- Use the **Upgrade Assistant** to upgrade your projects to Aspire 9.5.1.
1414

1515
> [!TIP]
1616
> If you're new to Aspire, there's no reason to upgrade anything. For more information, see [Aspire setup and tooling](../fundamentals/setup-tooling.md).
1717
1818
## Prerequisites
1919

20-
Before you upgrade your projects to Aspire 9.5.0, ensure that you have the following prerequisites:
20+
Before you upgrade your projects to Aspire 9.5.1, ensure that you have the following prerequisites:
2121

2222
- [Install the latest tooling](../fundamentals/setup-tooling.md).
2323
- [Use the Aspire SDK](../fundamentals/dotnet-aspire-sdk.md).
@@ -34,22 +34,22 @@ dotnet new install Aspire.ProjectTemplates
3434
> [!TIP]
3535
> If you have the legacy Aspire workload installed, you need to pass the `--force` flag to overwrite the existing templates. For instructions on uninstalling the legacy workload, see [Remove the Aspire workload (first-time upgrades from version 8 only)](#remove-the-aspire-workload-first-time-upgrades-from-version-8-only).
3636
37-
## Manually upgrade a solution to Aspire 9.5.0
37+
## Manually upgrade a solution to Aspire 9.5.1
3838

39-
To upgrade your projects to Aspire 9.5.0, you need to update your project files. The following steps guide you through the process:
39+
To upgrade your projects to Aspire 9.5.1, you need to update your project files. The following steps guide you through the process:
4040

41-
- Edit your [AppHost](xref:dotnet/aspire/app-host) project file to use the new Aspire 9.5.0 SDK (`Aspire.AppHost.Sdk`).
41+
- Edit your [AppHost](xref:dotnet/aspire/app-host) project file to use the new Aspire 9.5.1 SDK (`Aspire.AppHost.Sdk`).
4242
- Update the NuGet packages in your project files to the latest versions.
4343
- Adjust your _Program.cs_ file to use the new APIs and remove any obsolete APIs.
4444

4545
### Edit your AppHost project file
4646

47-
To upgrade your AppHost project to Aspire 9.5.0, you need to update your project file to use the new [📦 Aspire.AppHost.Sdk](https://www.nuget.org/packages/Aspire.AppHost.Sdk):
47+
To upgrade your AppHost project to Aspire 9.5.1, you need to update your project file to use the new [📦 Aspire.AppHost.Sdk](https://www.nuget.org/packages/Aspire.AppHost.Sdk):
4848

4949
```diff
5050
<Project Sdk="Microsoft.NET.Sdk">
5151

52-
+ <Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
52+
+ <Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
5353

5454
<PropertyGroup>
5555
<OutputType>Exe</OutputType>
@@ -61,20 +61,20 @@ To upgrade your AppHost project to Aspire 9.5.0, you need to update your project
6161
</PropertyGroup>
6262

6363
<ItemGroup>
64-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
64+
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
6565
</ItemGroup>
6666

6767
</Project>
6868
```
6969

7070
### Optionally upgrade the target framework moniker (TFM)
7171

72-
Aspire 9.5.0 runs on .NET 9.0, but you can also run it on .NET 8.0. In other words, just because you're using the Aspire SDK, and pointing to version 9.5.0 packages, you can still target .NET 8.0. If you want to run your Aspire 9.5.0 project on .NET 9.0, you need to update the `TargetFramework` property in your project file:
72+
Aspire 9.5.1 runs on .NET 9.0, but you can also run it on .NET 8.0. In other words, just because you're using the Aspire SDK, and pointing to version 9.5.1 packages, you can still target .NET 8.0. If you want to run your Aspire 9.5.1 project on .NET 9.0, you need to update the `TargetFramework` property in your project file:
7373

7474
```diff
7575
<Project Sdk="Microsoft.NET.Sdk">
7676

77-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
77+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
7878

7979
<PropertyGroup>
8080
<OutputType>Exe</OutputType>
@@ -87,7 +87,7 @@ Aspire 9.5.0 runs on .NET 9.0, but you can also run it on .NET 8.0. In other wor
8787
</PropertyGroup>
8888

8989
<ItemGroup>
90-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
90+
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
9191
</ItemGroup>
9292

9393
</Project>
@@ -102,7 +102,7 @@ If you followed all of the preceding steps, your AppHost project file should loo
102102
```diff
103103
<Project Sdk="Microsoft.NET.Sdk">
104104

105-
+ <Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
105+
+ <Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
106106

107107
<PropertyGroup>
108108
<OutputType>Exe</OutputType>
@@ -116,13 +116,13 @@ If you followed all of the preceding steps, your AppHost project file should loo
116116

117117
<ItemGroup>
118118
- <PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.0" />
119-
+ <PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
119+
+ <PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
120120
</ItemGroup>
121121

122122
</Project>
123123
```
124124

125-
The changes include the addition of the `Aspire.AppHost.Sdk`, the update of the `TargetFramework` property to `net9.0`, and the update of the `Aspire.Hosting.AppHost` package to version `9.5.0`.
125+
The changes include the addition of the `Aspire.AppHost.Sdk`, the update of the `TargetFramework` property to `net9.0`, and the update of the `Aspire.Hosting.AppHost` package to version `9.5.1`.
126126

127127
### Adjust your _Program.cs_ file
128128

@@ -131,7 +131,7 @@ The changes include the addition of the `Aspire.AppHost.Sdk`, the update of the
131131
132132
With the introduction of Aspire 9.5, there are some _breaking changes_. Some APIs were originally marked as experimental (with the <xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute>) and are now removed, while other APIs are now attributed as <xref:System.ObsoleteAttribute> with details on new replacement APIs. You need to adjust your _Program.cs_ file (and potentially other affected APIs) to use the new APIs. If you're using the Upgrade Assistant to upgrade your projects, it automatically adjusts your _Program.cs_ file in most cases.
133133

134-
For the complete list of breaking changes in Aspire 9.5.0, see [Breaking changes in Aspire 9.5](../compatibility/9.5/index.md).
134+
For the complete list of breaking changes in Aspire 9.5.1, see [Breaking changes in Aspire 9.5](../compatibility/9.5/index.md).
135135

136136
> [!IMPORTANT]
137137
> Be sure to review breaking changes for all versions of Aspire after the one you're upgrading from. For example, if you're upgrading from Aspire 9.0, you must address breaking changes for versions [9.1](../compatibility/9.1/index.md), [9.2](../compatibility/9.2/index.md), [9.3](../compatibility/9.3/index.md), [9.4](../compatibility/9.4/index.md), and [9.5](../compatibility/9.5/index.md).
@@ -143,11 +143,11 @@ The [Upgrade Assistant](/dotnet/core/porting/upgrade-assistant-overview) is a to
143143
- [The Visual Studio extension version](/dotnet/core/porting/upgrade-assistant-install#visual-studio-extension).
144144
- [The .NET CLI global tool version](/dotnet/core/porting/upgrade-assistant-install#net-global-tool).
145145

146-
Regardless of how you install the Upgrade Assistant, you can use it to upgrade your Aspire projects to Aspire 9.5.0.
146+
Regardless of how you install the Upgrade Assistant, you can use it to upgrade your Aspire projects to Aspire 9.5.1.
147147

148148
:::zone pivot="visual-studio"
149149

150-
To upgrade the Aspire AppHost project to Aspire 9.5.0 with Visual Studio, right-click the project in **Solution Explorer** and select **Upgrade**.
150+
To upgrade the Aspire AppHost project to Aspire 9.5.1 with Visual Studio, right-click the project in **Solution Explorer** and select **Upgrade**.
151151

152152
> [!IMPORTANT]
153153
> If the **Upgrade Assistant** isn't already installed, you'll be prompted to install it.
@@ -228,7 +228,7 @@ Complete: 3 succeeded, 0 failed, 7 skipped.
228228

229229
### Update the NuGet packages
230230

231-
To take advantage of the latest updates in your Aspire solution, update all NuGet packages to version `9.5.0`.
231+
To take advantage of the latest updates in your Aspire solution, update all NuGet packages to version `9.5.1`.
232232

233233
:::zone pivot="visual-studio"
234234

@@ -237,10 +237,10 @@ To take advantage of the latest updates in your Aspire solution, update all NuGe
237237
:::zone-end
238238
:::zone pivot="vscode,dotnet-cli"
239239

240-
To update your AppHost project, use the following .NET CLI command to update the `Aspire.Hosting.AppHost` package to version `9.5.0`:
240+
To update your AppHost project, use the following .NET CLI command to update the `Aspire.Hosting.AppHost` package to version `9.5.1`:
241241

242242
```dotnetcli
243-
dotnet add package Aspire.Hosting.AppHost --version 9.5.0
243+
dotnet add package Aspire.Hosting.AppHost --version 9.5.1
244244
```
245245

246246
When a package reference already exists, the `dotnet add package` command updates the reference to the specified version. For more information, see [dotnet add package](/dotnet/core/tools/dotnet-add-package).
@@ -252,7 +252,7 @@ With the AppHost project updated, your project file should look like this:
252252
```diff
253253
<Project Sdk="Microsoft.NET.Sdk">
254254

255-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
255+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
256256

257257
<PropertyGroup>
258258
<OutputType>Exe</OutputType>
@@ -265,7 +265,7 @@ With the AppHost project updated, your project file should look like this:
265265

266266
<ItemGroup>
267267
- <PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.0" />
268-
+ <PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.0" />
268+
+ <PackageReference Include="Aspire.Hosting.AppHost" Version="9.5.1" />
269269
</ItemGroup>
270270

271271
</Project>
@@ -276,7 +276,7 @@ With the AppHost project updated, your project file should look like this:
276276
277277
## Remove the Aspire workload (first-time upgrades from version 8 only)
278278

279-
If you're upgrading from Aspire 8 to Aspire 9 for the first time, you need to remove the legacy workload. This step is not needed for upgrades between Aspire 9 versions (such as from 9.4.0 to 9.5.0).
279+
If you're upgrading from Aspire 8 to Aspire 9 for the first time, you need to remove the legacy workload. This step is not needed for upgrades between Aspire 9 versions (such as from 9.4.0 to 9.5.1).
280280

281281
Previously the **aspire workload** was required to create and run Aspire projects. But, with Aspire 9 the workload is no longer required and should be removed from your .NET environment.
282282

docs/whats-new/dotnet-aspire-9.5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Moving between minor releases of Aspire is simple:
3737
iex "& { $(irm https://aspire.dev/install.ps1) }"
3838
```
3939

40-
1. In your AppHost project file (that is, _MyApp.AppHost.csproj_), update the [📦 Aspire.AppHost.Sdk](https://www.nuget.org/packages/Aspire.AppHost.Sdk) package to version `9.5.0`:
40+
1. In your AppHost project file (that is, _MyApp.AppHost.csproj_), update the [📦 Aspire.AppHost.Sdk](https://www.nuget.org/packages/Aspire.AppHost.Sdk) package to version `9.5.1`:
4141

4242
```xml
43-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.0" />
43+
<Sdk Name="Aspire.AppHost.Sdk" Version="9.5.1" />
4444
```
4545

4646
For more information, see [Aspire SDK](xref:dotnet/aspire/sdk).
@@ -114,7 +114,7 @@ For more information, see [aspire config set command](../cli-reference/aspire-co
114114
You can use `aspire new` to create a new, blank file-based AppHost. Select the _Single-file AppHost (experimental)_ option from the project template list:
115115
116116
```csharp
117-
117+
118118
119119
var builder = DistributedApplication.CreateBuilder(args);
120120

0 commit comments

Comments
 (0)