Skip to content

aspire update fails to update AppHost SDK when using the new 13.x project format #13348

@bodkul

Description

@bodkul

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

  1. Create a new AppHost project using the Aspire 13.x template.
  2. Ensure the project file uses the new simplified SDK format:
    <Project Sdk="Aspire.AppHost.Sdk/13.0.1">
  3. Run the command:
    aspire update
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions