Repository navigation
chore(deps): upgrade to .NET 11, EF Core 11, Npgsql 11 and Aspire 17 - #354
Merged
Merged
Conversation
- SDK 11.0.100 (global.json), net11.0 everywhere, CI/release/perf/azd on 11.0.x, sdk/aspnet:11.0 base images, net11.0 output paths in CI, lab.ps1 and scripts. - Every Microsoft/ASP.NET/EF/Extensions package on its 11.0.x stable; Npgsql 11; Aspire 17.0.0 (fixes GHSA-4g86-54fm-h9h8 / GHSA-f7vh-h5g3-7jrh), Keycloak integration 17.0.0-preview (no stable exists); supersedes Dependabot #343-#352 (MailKit 5, OpenTelemetry 1.21, MCP 2.4, Scalar 3, Microsoft.OpenApi 3, ...). - AppHost migrated off the obsolete Aspire.AppHost.Sdk (ASPIRE012): plain Microsoft.NET.Sdk + Aspire.Hosting.Dotnet, AddDotnetProject by path; DCP and the dashboard come from the Aspire CLI bundle. Dependabot's Aspire hold removed. - New .NET 11 analyzers fixed in code: BL0016 (SafeJs guard for best-effort JS interop), BL0013 (CircuitIdentityHandler follows AuthenticationStateChanged), CA2026 (JsonElement.Parse), CA2027 (WaitAsync instead of WhenAny + Delay), NU1510 (in-box Logging.Abstractions / Cryptography.Pkcs references dropped). - MailKit 5: SendAsync takes a SendRequest. - .NET 11 maps /_blazor/refresh and a Development hot-reload settings file: reviewed and added to the anonymous inventory / framework-file convention. - Tests: double -> decimal is exact in .NET 11, price literals go through text. - BuildVerifier default image sdk:11.0 with a net11.0 synthesized project. - EF: has-pending-model-changes is clean for all 8 module contexts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB
This was referenced Nov 28, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change description
Moves AgentOS.NET from .NET 10 to .NET 11 / C# 15 (SDK 11.0.100) and onto Aspire 17. Main's CI was red because NuGet audit flags Aspire 13.5.4 (GHSA-4g86-54fm-h9h8 critical, GHSA-f7vh-h5g3-7jrh high). This PR fixes that and replaces Dependabot #343–#352.
All versions were checked on nuget.org on 2026-11-28. Every package is on a stable release except
Aspire.Hosting.Keycloak, which has never shipped one.Platform
global.jsonsdk10.0.100→11.0.100(rollForwardlatestFeature).Directory.Build.propsandAgentOs.RemoteAgent.csproj→net11.0.LangVersionstayslatest.dotnet-version10.0.x→11.0.x. The CI Playwright install path is nowbin/Release/net11.0.Dockerfile/Dockerfile.web:mcr.microsoft.com/dotnet/sdk:10.0/aspnet:10.0→:11.0(tags; these were never digest-pinned). No compose, Helm or bicep file names a dotnet image.infra/lab/lab.ps1,scripts/build-plugins.ps1,scripts/run-kc-live.{ps1,sh}:bin/Release/net10.0paths →net11.0.Packages (old → new)
AddDotnetProject)[3.11, 4))These are already on their latest stable: Azure.AI.OpenAI 2.1.0 (2.9 is beta only), Azure.Identity, Azure DataProtection.Keys, Anthropic.SDK, JsonSchema.Net 9.*, Cronos, ApplicationInsights, System.IdentityModel.Tokens.Jwt, Octokit, BenchmarkDotNet 0.15.8 (0.16 is preview), xunit.runner.visualstudio, NSubstitute, Shouldly 4.3.0 (5.0 is preview), CodeCoverage, MessagePack 3.1.12 (4.0 is an RC), BannedApiAnalyzers 5.6.0.
Breaking changes fixed (in code, no suppressions)
AddProject. The AppHost now uses plainMicrosoft.NET.SdkwithAspire.Hosting.AppHostandAspire.Hosting.Dotnet. Api and Web are added by path withAddDotnetProject(..., o => o.ExcludeLaunchProfile = true), which replaceslaunchProfileName: null. The ProjectReferences only keep the build order (ReferenceOutputAssembly=false). DCP and the dashboard come from the Aspire CLI bundle, which is mandatory for C# AppHosts (ASPIRE013). The HELD comment and Dependabot'sAspire.*ignore are removed.dotnet runwritesinfra/AgentOs.AppHost/aspire.config.jsonon first run, so it is committed.SafeJs.TryInvokeVoidAsync/InvokeOrDefaultAsyncin Web.Shell. They catch only "browser unavailable" failures (JSException,JSDisconnectedException,TaskCanceledException,InvalidOperationException); anything else still throws. Used by SystemApp, ComponentsCatalog, OrchestrationStudio and AccountSignOut.AuthenticationStateChanged):CircuitIdentityHandlernow subscribes to the event, keeps the current state task, and unsubscribes inDispose.JsonDocument.Parse(..).RootElement→JsonElement.Parse): AIToolFunction plus 5 test sites.Task.WhenAny+Task.Delay→WaitAsync): the RemoteAgent approval prompt and one test.SmtpClient.SendAsync(MimeMessage)is gone, so the call is nowSendAsync(new SendRequest(message))./_blazor/refresh(the circuit hub's auth-refresh call) is public by the existing/_blazorconvention and is added to the reviewed anonymous inventory inHostSecurityTests./_framework/dotnet-browser-tools/hot-reload-settings.jsonis now public and not rate-limited, through a new framework-file rule inBlazorFrameworkEndpoints./_framework/opaque-redirectdeliberately keeps the fallback policy.(decimal)0.1 == 0.1000000000000000055511151231m). This broke 4 cost tests that pass prices as[InlineData]doubles; they now convert through round-trip text. The production code has no double→decimal money paths; the only cast left is a percentage width in InsightsApp.sdk:11.0and the synthesized project targetsnet11.0. They change together, so an offline host-mode build still finds its framework packs in the installed SDK.EF Core 11
dotnet ef migrations has-pending-model-changes(dotnet-ef 11.0.0) reports no changes for all 8 module contexts: AppConfig, DataProtection, Memory, Pipeline, Sessions, Tenants, Tools, Workspaces. No snapshot was regenerated and no migration was added.Deferred / notes
Aspire.Hosting.Keycloakstays on a preview because no stable release exists for any version.tests/AgentOs.Benchmarks/baseline) were recorded on .NET 10.0.14. perf.yml will compare .NET 11 runs against them until someone re-baselines.AgentOs.RemoteAgent) is framework-dependent and now needs the .NET 11 runtime on the member's machine.Type of change
Related issues
Supersedes #343, #344, #345, #346, #347, #348, #349, #350, #351, #352. Fixes the Aspire NuGet-audit failure on main (GHSA-4g86-54fm-h9h8, GHSA-f7vh-h5g3-7jrh).
Checklist
dotnet buildpasses locally in Release mode (0 warnings, 0 errors)dotnet testpasses: 3914 total, 3800 passed, 0 failed, 114 skipped (env-gated)Test plan (all run locally)
dotnet build AgentOs.slnx -c Release: green, 0 warnings.dotnet test --solution AgentOs.slnx -c Release: 3800 passed, 0 failed, 114 skipped.ASPNETCORE_ENVIRONMENT=Development … --urls http://localhost:5199) + UI E2E (RUN_AGENTOS_E2E=true): 71 total, 50 passed, 0 failed, 21 skipped (scaffolded or env-gated).dotnet run --project infra/AgentOs.AppHost) on Windows with fresh volumes:/healthreturned Healthy (Postgres + RLS on 20 tenant tables), and/scalar/v1and/openapi/v1.jsonreturned 200;/account/loginreturned 302 to theagenticrealm, which served the "Sign in to AgentOS.NET" page;operator/operatorsign-in went/signin-oidc→ 302/→ the desktop with a 200. PAR is disabled in code, so the redirect has norequest_uri=urn:.has-pending-model-changesis clean for all 8 contexts.🤖 Generated with Claude Code
https://claude.ai/code/session_018WAdQ7Rm24xss5QDSvXtJB