Skip to content

Align Aspire on 13.4.6 and net10.0 - #762

Merged
KrzysztofPajak merged 1 commit into
developfrom
chore/align-aspire-versions
Aug 8, 2026
Merged

Align Aspire on 13.4.6 and net10.0#762
KrzysztofPajak merged 1 commit into
developfrom
chore/align-aspire-versions

Conversation

@KrzysztofPajak

Copy link
Copy Markdown
Member

Type: bugfix

Issue

Aspire was pinned at three different versions at once:

Where Version
Directory.Packages.props - Aspire.Hosting.* 13.4.6
Aspire.AppHost.csproj - Aspire.AppHost.Sdk 9.0.0
Directory.Packages.props - Aspire.Dashboard.Sdk.$(NETCoreSdkRuntimeIdentifier) and Aspire.Hosting.Orchestration.$(...) 9.0.0
same two, Update for win-x64 only 13.4.6

The win-x64 override hid the problem on Windows developer machines. Everywhere
else - including every CI runner - the dashboard and orchestration resolved 9.0.0
next to hosting at 13.4.6.

Reproduce:

dotnet restore src/Aspire/Aspire.AppHost/Aspire.AppHost.csproj --force \
  -p:NETCoreSdkRuntimeIdentifier=linux-x64

Before this change that resolves Aspire.Dashboard.Sdk.linux-x64/9.0.0; after it,
13.4.6.

Separately, src/Aspire/* targeted net9.0 while the rest of the solution is
net10.0, and all four web hosts reference Aspire.ServiceDefaults.

Solution

  • Aspire.AppHost.Sdk 9.0.0 -> 13.4.6.
  • Aspire.Dashboard.Sdk.$(NETCoreSdkRuntimeIdentifier) and
    Aspire.Hosting.Orchestration.$(...) 9.0.0 -> 13.4.6.
  • Dropped the win-x64 Update block - it no longer differs from the generic entry.
  • Aspire.AppHost and Aspire.ServiceDefaults net9.0 -> net10.0.
  • Removed dotnet workload install aspire from all four CI definitions. Aspire has
    been SDK-based since 9.2; the solution builds with no aspire workload installed
    (dotnet workload list empty).

The API surface in play is small - DistributedApplication.CreateBuilder,
AddMongoDB, AddRedis, WithLifetime, ContainerLifetime.Persistent in a
12-line Program.cs, plus 95 lines of ServiceDefaults/Extensions.cs - and is
unchanged between 9.x and 13.x.

Breaking changes

None to application behaviour.

Anyone building the AppHost needs the .NET 10 SDK, which the rest of the solution
already required. Non-Windows builds now get Aspire 13.4.6 components instead of
9.0.0 - that is the fix, but it is a change in what those builds produce.

Testing

  1. dotnet restore src/Aspire/Aspire.AppHost/Aspire.AppHost.csproj --force -p:NETCoreSdkRuntimeIdentifier=linux-x64
    then check obj/project.assets.json - Aspire.Dashboard.Sdk.linux-x64/13.4.6 and
    Aspire.Hosting.Orchestration.linux-x64/13.4.6.
  2. dotnet build ./GrandNode.sln - clean, 0 errors.
  3. dotnet workload list shows no aspire workload, confirming the CI step is
    unnecessary.
  4. Manual: run Aspire.AppHost and confirm the dashboard starts and both the
    MongoDB and Redis containers come up.

🤖 Generated with Claude Code

Aspire was pinned at three different versions at once. Aspire.Hosting.*
was 13.4.6, but Aspire.AppHost.Sdk was 9.0.0, and Aspire.Dashboard.Sdk /
Aspire.Hosting.Orchestration were declared 9.0.0 for the generic
$(NETCoreSdkRuntimeIdentifier) and overridden to 13.4.6 for win-x64 only.

The override hid the problem on Windows. Restoring with
-p:NETCoreSdkRuntimeIdentifier=linux-x64 resolved the dashboard and
orchestration at 9.0.0 next to hosting at 13.4.6 - which is what every CI
runner was building. Both now resolve 13.4.6 on linux-x64, and the win-x64
override is gone because it no longer differs from the generic entry.

The Aspire projects also targeted net9.0 while the rest of the solution is
net10.0, and all four web hosts reference Aspire.ServiceDefaults. Both are
now net10.0.

Aspire has been SDK-based since 9.2, so `dotnet workload install aspire` is
obsolete; the solution builds with no aspire workload installed. Dropped
from all four CI definitions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 8, 2026 20:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@KrzysztofPajak
KrzysztofPajak merged commit eb8fd91 into develop Aug 8, 2026
6 checks passed
@KrzysztofPajak
KrzysztofPajak deleted the chore/align-aspire-versions branch August 8, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants