Skip to content

Upgrade to .NET 11 - #2228

Open
David Pine (IEvangelist) wants to merge 1 commit into
mainfrom
ievangelist-upgrade-dotnet-11
Open

David Pine (IEvangelist) wants to merge 1 commit into
mainfrom
ievangelist-upgrade-dotnet-11

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Summary

Upgrades the repo from .NET 10 to .NET 11 (GA 2026-11-10).

  • global.json: SDK 10.0.100 → 11.0.100 (all CI workflows and the AzDO CodeQL pipeline resolve the SDK from global.json).
  • Retargets all 8 projects (AppHost, StaticHost, both tools, all 4 test projects) to net11.0.
  • Bumps Microsoft.AspNetCore.OpenApi, System.IO.Hashing, Microsoft.AspNetCore.TestHost, Microsoft.Extensions.Http.Resilience, Microsoft.Extensions.TimeProvider.Testing to 11.0.0. All have been on NuGet 9.9+ days.
  • StaticHost ContainerFamily: noble-chiseled → resolute-chiseled (Ubuntu 26.04). MCR publishes no 11.0-noble* aspnet tags.
  • Updates bin/Release/net11.0 paths in frontend-build.yml and playwright.config.mjs, plus the code-review skill doc.

Intentionally unchanged: PackageJsonGenerator's net10.0 default, which labels the target framework of Aspire integration packages, not this repo's runtime.

Third-party links and affiliations

None

Validation

Run locally with SDK 11.0.100:

  • dotnet test tests/PackageJsonGenerator.Tests -c Release: passed (41/41)
  • dotnet test tests/AtsJsonGenerator.Tests -c Release: passed (113/113)
  • dotnet test tests/Aspire.Dev.AppHost.Tests -c Release: passed (4/4)
  • dotnet test tests/StaticHost.Tests -c Release --filter "Category!=RedisIntegration": passed (423/423)
  • dotnet msbuild src/statichost/StaticHost/StaticHost.csproj -t:ComputeContainerBaseImage -getProperty:ContainerBaseImage: resolves to mcr.microsoft.com/dotnet/aspnet:11.0-resolute-chiseled (tag exists on MCR)

Not run locally: Redis integration tests (need Docker), frontend build and E2E. Left to CI.

- global.json SDK 11.0.100
- Retarget all projects to net11.0
- Bump ASP.NET Core/runtime/extensions packages to 11.0.0
- Switch container family to resolute-chiseled (no noble images for 11.0)
- Update net11.0 output paths in CI and Playwright config

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 21:26

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.

🟡 Changes recommended

API-data regeneration fails on clean SDK 11 installations because it still targets .NET 10 but cannot locate the required reference assemblies.

1 open issue
What changed in this PR

Upgrades the repository’s applications, tools, and tests to .NET 11, while preserving PackageJsonGenerator’s separate net10.0 metadata default.

Changes:

  • Updates the SDK pin and all eight project target frameworks to .NET 11.
  • Upgrades selected Microsoft packages and switches StaticHost to the resolute-chiseled container family.
  • Aligns CI artifact paths, Playwright startup, and review documentation with net11.0.
File Description
tests/​StaticHost.Tests/​StaticHost.Tests.csproj Retargets tests and upgrades test dependencies.
tests/​PackageJsonGenerator.Tests/​PackageJsonGenerator.Tests.csproj Retargets generator tests to .NET 11.
tests/​AtsJsonGenerator.Tests/​AtsJsonGenerator.Tests.csproj Retargets ATS generator tests to .NET 11.
tests/​Aspire.Dev.AppHost.Tests/​Aspire.Dev.AppHost.Tests.csproj Retargets AppHost tests to .NET 11.
src/​tools/​PackageJsonGenerator/​PackageJsonGenerator.csproj Retargets the package metadata generator.
src/​tools/​AtsJsonGenerator/​AtsJsonGenerator.csproj Retargets the ATS metadata generator.
src/​statichost/​StaticHost/​StaticHost.csproj Updates framework, dependencies, and container family.
src/​frontend/​playwright.config.mjs Starts StaticHost from its .NET 11 output directory.
src/​apphost/​Aspire.Dev.AppHost/​Aspire.Dev.AppHost.csproj Retargets the application orchestrator.
global.json Pins SDK 11.0.100.
.github/​workflows/​frontend-build.yml Updates StaticHost artifact upload and download paths.
.agents/​skills/​code-review/​SKILL.md Updates the documented C# target framework.

Review effort: Balanced

Comment thread global.json
{
"sdk": {
"version": "10.0.100",
"version": "11.0.100",
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #2228. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2228 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

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.

3 participants