microsoft / microsoft/aspire

[WebToolsE2E][Aspire] Updating an existing 9.0.0 aspire project to 9.1.0 gives a warning: "Multiple versions of the same SDK "Aspire.AppHost.Sdk" cannot be specified. The previously resolved SDK version '9.0.0' will be used."

Open
#6,838 20 comments 0 reactions 1 assignee Claimed by @phenning View on GitHub
area-tooling external
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

**INSTALL STEPS**

1. Clean machine: Win11 x64 23h2 ENU
2. Install VS 17.13.2
3. Install Aspire 9.1.0 template

**REPRO STEPS**

1. Open an existing 9.0.0 Aspire Starter App projet
2. Update all aspire packages to Aspire 9.1.0
3. Open xxx.AppHost.csproj file, update `Aspire.AppHost.Sdk` from 9.0.0 to 9.1.0

**ACTUAL**
Multiple versions of the same SDK "Aspire.AppHost.Sdk" cannot be specified. The previously resolved SDK version "9.0.0" from location "C:\Users\v-sherryfan\source\repos\AspireApp5\AspireApp5.AppHost\AspireApp5.AppHost.csproj" will be used and the version "9.1.0" will be ignored.

![Image](https://github.com/user-attachments/assets/14c153fc-efd2-4e0f-b8ee-c4f534fa4394)

**Note**

1. The warning will disappear after reopening project
2. This issue does not repro in CLI
3. This issue still repro on Aspire 9.1.0

**EXPECTED**
Update project without any warnings

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.