ADR: Moving to .NET 11 in four ships
Status: accepted, 2026-12-01, at 1.0.5.231. The first of the move's versions: the guards, still on .NET 10. Each later ship adds a section here.
Reading list
Read on 1 December 2026.
- ADR: Staying on .NET 10, and on xUnit v2 for now: the October record that said no and named three conditions; its addendum of this version dates them.
- ADR: Technology versions: the table every project file is held to, and the two pins with a measured reason.
- ADR: A second store on Cosmos DB, and what it costs: the addendum on the version bump, where Azure.Identity 1.21.0 left the live site on files, which is why that pin stays until a live read moves it.
- ADR: One traffic cop for main: one commit, one version, and a rollback that is an image swap.
- Microsoft's release metadata (builds.dotnet.microsoft.com, release-metadata/11.0/releases.json): 11.0.0 and SDK 11.0.100 released 10 November 2026, standard-term, supported to 14 November 2028, the same day .NET 10 ends.
- NuGet, read 1 December 2026 (api.nuget.org, each package's index and .nuspec): EF Core and ASP.NET Core 11.0.0 published 10 November with one dependency group, net11.0; Microsoft.EntityFrameworkCore.SqlServer 11.0.0 asks Microsoft.Data.SqlClient 7.1.1; every Microsoft.Data.SqlClient.Extensions.Azure from 7.0.2 to 7.1.2 asks Azure.Identity 1.18.0; Azure.Functions.Sdk 1.1.0 published 14 November.
az functionapp list-flexconsumption-runtimes -l westus3 --runtime dotnet-isolated, read 1 December: 11.0 listed, end of support 14 November 2028.
In plain words
The site moves from .NET 10 to .NET 11, Microsoft's newest release. Most of a move like this either fails to build, which is loud and cheap, or builds and works. The expensive part is the handful of places where it builds, passes every test, ships green, and then does the wrong thing on the live site where nobody is looking. This record names those places for this site, puts a guard on each before anything moves, and then moves in steps small enough that going back is swapping one container image for the one before.
What that is worth: a developer gets a list of exactly what a runtime upgrade can break without a red build, each with the test that now goes red instead; the organization gets the newest runtime with nothing taken on trust and a rollback that was written down before it was needed.
Context
ADR-090 kept the site on .NET 10 in October until three things were true: 11.0 final; EF Core 11, the Cosmos DB SDK and the other packages stable against it; and something in it the site needs. Its addendum of this version dates each. The move was planned on 1 December and the plan named what could break quietly; reading the packages and measuring the runtime that morning added two the plan did not have.
What can ship green and break, for this site:
- SQL sign-in. EF Core 11 brings SqlClient 7, which moved the Entra sign-in out of the driver into Microsoft.Data.SqlClient.Extensions.Azure. Both connection strings say Authentication=Active Directory Managed Identity. Without the package the string parses, every test passes, and the first open fails on the live site, which then comes up on SQLite; the deploy prints a warning and stays green.
- The pin under it. Every 7.x of that extension asks Azure.Identity 1.18.0. The site is pinned to 1.17.1 because 1.21.0 made the managed identity token miss SqlClient's wait (ADR-059). So EF Core 11 cannot arrive with the pin unchanged, and a pin is moved only by the measurement that set it: a live read that the site is on Azure SQL Database.
- The image's OS. The aspnet:11.0 image is Ubuntu 26.04; 10.0 was 24.04. The runtime stage installs curl with apt and runs as the image's own user. The gate builds the tree, not the image.
- The OpenAPI version. ASP.NET Core 11 writes OpenAPI 3.2 by default; the reference page reads 3.1.
- A background loop that throws. From .NET 11 a BackgroundService that faults ends the process with an error.
- Rounding. Measured on the box: the same 400,000 roundings on 10.0.15 and 11.0.0. No random double moved. 13,095 of 200,000 short decimals ending in 5 did, by a whole digit, not a last place: 2.675 to cents is 2.68 on 10 and 2.67 on 11, and 3 of 2000 as a percent to one place is 0.2 on 10 and 0.1 on 11. The cast to decimal moved with it. Whole-number rounding, which the auction's windows use: 0 of 300,000 moved.
- The Function's runtime. A net11.0 zip on a Flex app set to 10.0 does not start; the deploy only zips.
Decision
- Four ships, and a fifth step only where a pin demands it. Ship 1: the guards, on .NET 10 (this version). Ship 2: the SDK, the images and every project under api/, samples/ and server/ to net11.0, with the EF Core family held at 10.0.x, which runs on 11, because EF Core 11 moves the pin. Ship 2b: EF Core 11, SqlClient 7.1 with its Azure extension and Azure.Identity 1.18.0, the extension's floor, proven live on Azure SQL Database before PackagePinTests moves. Ship 3: the third-party packages, one family at a time. Ship 4: the job hunt Function, alone and last. Each ship starts only after the one before is live and CI on main is green.
- A guard before every quiet break, held by a test that goes red.
- G6 rounds the number as it prints. A site applies when its input can be a short decimal: money, a price times a count, a percent of two counts. Those round through
PrintedNumber.Round, which rounds the shortest text that reads back as the same double, so the answer is a person's and the same on every runtime (800,000 results identical bit for bit on 10.0.15 and 11.0.0). NightlySlots is compiled into the Function as well and keeps to itself, so it rounds whole tenths of a per cent instead. Measurements (bytes, milliseconds, request units, CPU) and whole-number roundings do not apply.
- G5 is on the box, not in the gate. The gate's longest job, a browser shard, ran 9.1 minutes on 1.0.5.229; the image build alone is longer than that on a runner, so a gate job would lengthen every version to guard four. The box runs the script before each of those pushes and the lane's notes keep its minutes.
- Rollback is written before ship 2 is pushed. The last .NET 10 image tag and commit; the web app pointed back at that tag with the same
az webapp config set the deploy uses; a revert through the cop with Fixes-main; the Function redeployed by hand at the last .NET 10 commit, whose runtime follows its project. Any live gate line red fifteen minutes after a roll means roll back first.
Consequences
- What stops being true: that a runtime move is proven by a green gate. Each break above now turns a test red, or stops the deploy before it acts.
- What stays true: no schema, migration or stored shape changes, so every ship rolls back as an image swap.
- The cost: five versions instead of one, and a Function that runs .NET 10 for the days between ships 2 and 4, which the home page's tech stack table flags in the warning colour, as it was built to.
- Not here: xUnit v3, Central Package Management, coverlet 10 and Node 26 are a lane of their own, and C# 15's union results another.
Where it sits
Under every ring: the runtime, the SDK and the packages every project builds on, and the two deploys that roll them. It serves the open-closed principle at the edge of the system: the rings do not change, only what they run on. It cost one version of guards before any version moved; a .NET 11 patch that changes any guarded behaviour, or a pin re-measured live, is what would change it.
Addendum, 2026-12-01 (1.0.5.232): ship 2, the site, The Shed and the server on .NET 11
What stopped being true: that the site runs on .NET 10. global.json names SDK 11.0.100, the deploy image builds on sdk:11.0.100 and runs on aspnet:11.0 (Ubuntu 26.04), and every project under api/, samples/ and server/ targets net11.0. The Microsoft packages built with the framework are 11.0.0; the EF Core family and Identity's EF Core store stay on 10.0.15, the newest .NET 10 patch, which brings SqlClient 6.1.7 and asks Azure.Identity 1.17.1 exactly, so the pin and the sign-in are as they were.
What the move needed, and what found it:
- Nothing in ApiDocument. Microsoft.OpenApi resolved to 3.11.0 and the document code compiled as it was; G3 holds the served document at 3.1.
- One test that read a private name. ASP.NET Core 11 made the short-circuit metadata public (ShortCircuitAttribute behind IShortCircuitMetadata) and the internal ShortCircuitMetadata went away, so RequestPipelineTests, which matched it by name, now holds the two probes to the interface. The probes were short-circuited all along; only the test's way of seeing it broke.
- Two new analyzer rules, in The Shed's tests only. CA2026 asks for JsonElement.Parse in place of JsonDocument.Parse(...).RootElement, which leaks the document; IDE0005 now finds
using System.Net.Http.Json unnecessary where the SDK brings it. Both fixed in the code; no rule was turned off.
- The box's runtime root. The machine lanes' units set DOTNET_ROOT to /usr/lib/dotnet, the apt install, which holds runtime 10.0.13 only and needs root to change, and the Function's pounce handoff writes the same into each slot run. The build on net11.0 would not have started there, and the first sign would have been a missed 6 AM run. All four now name the user's own ~/.dotnet, which holds 10 and 11 side by side, so the build still running today keeps running and the republish after this version starts; ServerRuntimeRootTests holds them together. The republish itself is a follow-on, after the next 6 AM run.
- DotnetInstallTests reads the SDK's major from the API's TargetFramework instead of a typed 10, so the next move changes the project and global.json and the test follows.
- G6, planted. With every short-decimal site put back on Math.Round, the whole API suite on .NET 11 passed except RoundingTests: no test that existed before would have caught a cost one cent off.
The job hunt's Function stays on net10.0 until ship 4, so the home page's tech stack table flags it, as its record says it will.
Addendum, 2026-12-01 (1.0.5.234): ship 2b, EF Core 11 and the pin
What stopped being true: that the site runs EF Core 10 and Azure.Identity 1.17.1. EF Core 11.0.0 brings Microsoft.Data.SqlClient 7.1.1, and its managed identity sign-in comes from Microsoft.Data.SqlClient.Extensions.Azure 7.1.1, which asks Azure.Identity 1.18.0, so the pin moves there and no further; 1.21.0, the version that failed in ADR-059, stays out. Proven before the push: with the extension removed the API built with no warning and every existing SQL test passed, and only G1 went red (Assert.NotNull() Failure: Value is null for both connection strings). EF Core 11 changed one metadata call the tests use, an index's members now typed IPropertyBase, and nothing in the product. The live proof is the one ADR-059 used: /api/health on both names reads Azure SQL Database after the roll; the reading and its time are in the lane's notes.
Addendum, 2026-12-01 (1.0.5.235): ship 3, the third-party packages, and OpenAPI 3.2
The packages that are not the framework's, each read on nuget.org or npm on 1 December 2026 and moved one family at a time with its suite: Microsoft.Azure.Cosmos 3.64.0, Scalar.AspNetCore 3.4.1 (a major, published that day), Microsoft.NET.Test.Sdk 18.12.0, Microsoft.Build.Sql 2.4.0, and on npm only patch releases (react and react-dom 19.3.1, @types/react 19.3.3, concurrently 10.0.7, sharp 0.35.6); every minor release waits for a version of its own. Microsoft.Agents.AI, Azure.Communication.Email, Azure.Monitor.OpenTelemetry.AspNetCore and NetArchTest had nothing newer. Scalar 3 needed no change to the code that configures it. G3 said the document moves to OpenAPI 3.2 only once the reference page draws it: with 3.2 set, the reference page's browser spec passed twice with no retry, so ApiDocument.Configure writes 3.2 and ApiDocumentTests holds it. The pins stay: coverlet.collector 6.0.4 and xunit 2.9.3 are a lane of their own.
Addendum, 2026-12-01 (1.0.5.237): ship 4, the job hunt's Function on .NET 11
What stopped being true: that the Function runs .NET 10. Every project under functions/ targets net11.0; the host project builds on Azure.Functions.Sdk 1.1.0, the project SDK the isolated worker needs for .NET 11, in place of the Microsoft.Azure.Functions.Worker.Sdk package (Worker 2.52.0 stays, above the 2.50.0 it asks); Microsoft.Data.SqlClient moves to 7.1.1 with Microsoft.Data.SqlClient.Extensions.Azure 7.1.1 for the campaign database's managed identity sign-in, Azure.Storage.Files.Shares to 12.28.1, and infra/jobhunt.bicep names dotnet-isolated 11.0. The deploy sets the Flex runtime from the project before the zip (ADR-098, its addendum of this version), so the Function's rollback is a redeploy of an older commit.
What the move needed, and what found it:
- G7 caught the new SDK. Azure.Functions.Sdk writes no functions.metadata: the host asks the worker for its functions at start (worker indexing). The deploy's shape check, written in ship 1 to read that file, would have stopped this deploy with all 25 functions missing, which is what it is for. It now reads the published assembly when the file is absent (scripts/function_triggers.cs, a file-based C# program on the Web SDK, attributes read as data), and still reads the file for an older commit's build. Read on the box: 25 of 25, the same list Azure has.
- G1 on the Function. With the sign-in package removed, SqlSignInTests went red and CampaignSqlTests passed.
- Two NuGet rules. On net11.0 the framework carries System.Security.Cryptography.Pkcs, so naming it in a project that has the ASP.NET Core framework is refused (NU1510); the test project, which has not, still names it at 11.0.0 to keep SqlClient 7.1.1's Pkcs 9.0.18 and its two advisories out.
- The SDK's restore hook. Restored through the test project, the Function's build warns AZFW0108; CI and the gate restore the Function itself first.
The home page's tech stack table flagged the Function's row from ship 2 to this version, and clears it here by itself, as ADR-089's addendum of 1.0.4.71 says it will.
Addendum, 2026-12-01 (1.0.5.239): ship 4b, the runtime written on the site itself
The Function's first .NET 11 deploy stopped before its zip on the runtime step: the CLI's runtime command reads the app's plan, which the deploy identity may not read. The guard did its job, the Function stayed on .NET 10 and answering, and the plan's fallback (a hand run of infra/jobhunt.bicep) was not needed: the step now patches the site's own functionAppConfig, which the identity may write (ADR-098, its addendum of this version). Running the bicep by hand was the other way, and it would also have replaced the app's whole settings list with the template's.
Enforced by
Not machine-checked. Held by review.