-
Notifications
You must be signed in to change notification settings - Fork 750
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Running aspire update fails to update the AppHost SDK when the project uses the new simplified AppHost format introduced in Aspire 13.x:
<Project Sdk="Aspire.AppHost.Sdk/13.0.1">
The CLI expects the old-style format:
<Sdk Name="Aspire.AppHost.Sdk" Version="13.0.1" />
and therefore reports:
❌ Could not find <Sdk Name='Aspire.AppHost.Sdk' />
This makes the AppHost SDK impossible to update automatically.
Expected Behavior
aspire update should detect and update the SDK version inside:
<Project Sdk="Aspire.AppHost.Sdk/13.0.1">
and update it to:
<Project Sdk="Aspire.AppHost.Sdk/13.0.2">
The CLI should support the new project format documented for Aspire 13.x.
Steps To Reproduce
- Create a new AppHost project using the Aspire 13.x template.
- Ensure the project file uses the new simplified SDK format:
<Project Sdk="Aspire.AppHost.Sdk/13.0.1"> - Run the command:
aspire update - The CLI detects available updates but fails with the error:
❌ Could not find <Sdk Name='Aspire.AppHost.Sdk' />
Exceptions (if any)
Executing: Update package Aspire.AppHost.Sdk from 13.0.1 to 13.0.2
❌ Could not find element in AppHost.csproj
.NET Version info
10.0
Anything else?
No response