When upgrading .NET Aspire, updating NuGet packages alone is not enough to fix the 'Newer version of Aspire.Hosting.AppHost required' error. The root cause is that the AppHost project uses a special SDK reference at the top of the .csproj file (e.g., `Sdk="Aspire.AppHost.Sdk/x.x.x"`) that is separate from PackageReference items and is not updated by NuGet tooling. The DCP version check validates against this SDK version, not the NuGet package version. The fix requires manually updating the version in the Sdk attribute to match the targeted Aspire version, in addition to updating all Aspire.* NuGet packages.

2m read timeFrom bartwullems.blogspot.com
Post cover image
Table of contents
Why updating NuGet packages isn't enoughThe fixGoing forward

Sort: