From 51c1adb7dc34585526cdedf0bb6f5113e8992ca4 Mon Sep 17 00:00:00 2001 From: David Pine <7679720+IEvangelist@users.noreply.github.com> Date: Fri, 20 Nov 2026 15:21:54 -0600 Subject: [PATCH] Upgrade to .NET 11 - 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> --- .agents/skills/code-review/SKILL.md | 2 +- .github/workflows/frontend-build.yml | 4 ++-- global.json | 2 +- .../Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj | 2 +- src/frontend/playwright.config.mjs | 2 +- src/statichost/StaticHost/StaticHost.csproj | 10 +++++----- src/tools/AtsJsonGenerator/AtsJsonGenerator.csproj | 2 +- .../PackageJsonGenerator/PackageJsonGenerator.csproj | 2 +- .../Aspire.Dev.AppHost.Tests.csproj | 2 +- .../AtsJsonGenerator.Tests.csproj | 2 +- .../PackageJsonGenerator.Tests.csproj | 2 +- tests/StaticHost.Tests/StaticHost.Tests.csproj | 6 +++--- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.agents/skills/code-review/SKILL.md b/.agents/skills/code-review/SKILL.md index 12b751a58c..9d5433b325 100644 --- a/.agents/skills/code-review/SKILL.md +++ b/.agents/skills/code-review/SKILL.md @@ -99,7 +99,7 @@ verified. When in doubt, leave it out. Apply only the checklists for languages that actually changed. Keep findings high-signal. -### C# (`StaticHost`, tools, AppHost — xUnit, `net10.0`, nullable enabled) +### C# (`StaticHost`, tools, AppHost — xUnit, `net11.0`, nullable enabled) - **Correctness:** middleware ordering and short-circuiting; request/response paths; header and content-negotiation parsing (`AcceptHeaderParser`, path mapping) handle malformed/edge input. diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index 82badf6a6f..3e3cb94b1a 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -224,7 +224,7 @@ jobs: uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: statichost-bin - path: src/statichost/StaticHost/bin/Release/net10.0 + path: src/statichost/StaticHost/bin/Release/net11.0 if-no-files-found: error retention-days: 7 @@ -455,7 +455,7 @@ jobs: uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: statichost-bin - path: src/statichost/StaticHost/bin/Release/net10.0 + path: src/statichost/StaticHost/bin/Release/net11.0 # Any answer, a 404 included, means StaticHost is up and has built its # routing table, which the first request does. diff --git a/global.json b/global.json index f72210cac2..ea461bb7ba 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "10.0.100", + "version": "11.0.100", "rollForward": "latestFeature" } } \ No newline at end of file diff --git a/src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj b/src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj index 35e9223188..48c0611e58 100644 --- a/src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj +++ b/src/apphost/Aspire.Dev.AppHost/Aspire.Dev.AppHost.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 true enable enable diff --git a/src/frontend/playwright.config.mjs b/src/frontend/playwright.config.mjs index 827d21acfc..b556145457 100644 --- a/src/frontend/playwright.config.mjs +++ b/src/frontend/playwright.config.mjs @@ -70,7 +70,7 @@ export default defineConfig({ // Build job builds it, so the tests start its assembly directly: `dotnet run --no-build` still // evaluates the project, which takes seconds. The E2E jobs start it before dist arrives // (.github/scripts/start-web-server.mjs), hence reuseExistingServer. - command: `dotnet bin/Release/net10.0/StaticHost.dll --urls ${e2eBaseUrl}`, + command: `dotnet bin/Release/net11.0/StaticHost.dll --urls ${e2eBaseUrl}`, cwd: fileURLToPath(new URL('../statichost/StaticHost/', import.meta.url)), // No Redis runs with the tests: the short connect timeout keeps StaticHost from waiting 5 s per // attempt at startup. diff --git a/src/statichost/StaticHost/StaticHost.csproj b/src/statichost/StaticHost/StaticHost.csproj index 791917b5e4..812588e27b 100644 --- a/src/statichost/StaticHost/StaticHost.csproj +++ b/src/statichost/StaticHost/StaticHost.csproj @@ -1,12 +1,12 @@ - net10.0 + net11.0 enable enable false false true - noble-chiseled + resolute-chiseled