Skip to content

chore(deps): move to .NET 11 (supersedes #181, #182, #184) - #190

Closed
ophionos wants to merge 1 commit into
chore/nuget-batch-2026-12from
chore/dotnet-11
Closed

ophionos wants to merge 1 commit into
chore/nuget-batch-2026-12from
chore/dotnet-11

Conversation

@ophionos

@ophionos ophionos commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Moves the backend from .NET 10 to .NET 11. This replaces Dependabot's #181 (aspnet image), #182 (sdk image) and #184 (Microsoft.Extensions 11). None of those can merge alone: a net10.0 app does not run on the aspnet 11 image.

Stacked on #188. The base is chore/nuget-batch-2026-12. I rebase this PR onto main after #188 merges.

Changes

  • net11.0 in Directory.Build.props. The five test projects drop their own copy of TargetFramework, so Directory.Build.props is its one owner.
  • Microsoft.AspNetCore.*, Microsoft.EntityFrameworkCore.*, Npgsql.EntityFrameworkCore.PostgreSQL and Microsoft.Extensions.* move to 11.0.x. The sdk/aspnet images and setup-dotnet (ci, e2e) move to 11.
  • Roslyn pinned to 5.9.0. EF Core Design 11 needs Microsoft.CodeAnalysis.* 5.9.0 or later. WolverineFx.RuntimeCompilation → JasperFx.RuntimeCompiler pulls the 5.0.0 metapackages, whose members pin each other exactly (NU1608 with warnings as errors). Mixed versions are a runtime risk, because Scripting uses Roslyn internals. The compiler accepts [4.14.0, 6.0.0), so pinning both metapackages at 5.9.0 keeps every Roslyn assembly the same version.
  • SQLitePCLRaw pin removed. EF Core 11 requires 3.0.5 or later, which already contains the fix for GHSA-2m69-gcr7-jv3q. The old 3.0.3 pin was now a downgrade (NU1109).
  • Microsoft.Extensions.Hosting.Abstractions reference removed. The framework provides it on .NET 11 (NU1510).

.NET 11 behavior change: double → decimal

.NET 11 converts double to decimal with the exact binary value: (decimal)499.9 is 499.8999999999999772…. 20 PriceParserTests cases failed because [InlineData] passes double literals into decimal parameters. They now convert through a round-trip string.

Production code never converts double to decimal. Prices reach decimal only through strings: PriceParser, and JsonValue.ToString() in JsonPathExtractor. The (double) casts go the other way (sorting, metrics) and are not affected. docs/agent-notes.md § Pricing records the rule.

Gate (local, .NET SDK 11.0.100)

  • dotnet build: 0 warnings, 0 errors (TreatWarningsAsErrors, latest-recommended analyzers)
  • backend: 2597 / 2597 passed
  • postgres: 41 / 41 passed
  • dotnet ef migrations has-pending-model-changes: no changes
  • Wolverine codegen: no changes

[🤖 Generated by Claude Opus 5.5]

- net11.0 in Directory.Build.props; the test projects drop their own copy
  of the TargetFramework so the props file is the one owner.
- Microsoft.AspNetCore.*, Microsoft.EntityFrameworkCore.*, Npgsql EF and
  Microsoft.Extensions.* to 11.0.x; sdk/aspnet images and setup-dotnet to 11.
- Roslyn pinned to 5.9.0: EF Core Design 11 needs it, and the 5.0.0
  metapackages that WolverineFx.RuntimeCompilation pulls pin each other
  exactly (NU1608). JasperFx.RuntimeCompiler accepts [4.14, 6.0).
- Drop the SQLitePCLRaw pin: EF Core 11 requires the patched 3.0.5+.
- Drop Microsoft.Extensions.Hosting.Abstractions: the framework provides it
  on .NET 11 (NU1510).
- PriceParserTests: .NET 11 converts double to decimal exactly, so the
  InlineData doubles go through a round-trip string. Production code never
  converts double to decimal; agent-notes records the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ophionos
ophionos deleted the branch chore/nuget-batch-2026-12 December 2, 2026 19:15
@ophionos ophionos closed this Dec 2, 2026
ophionos added a commit that referenced this pull request Dec 2, 2026
Replaces #190, which GitHub closed when its base branch (#188) was
deleted. Moves the backend from .NET 10 to .NET 11. This replaces
Dependabot's #181 (aspnet image), #182 (sdk image) and #184
(Microsoft.Extensions 11). None of those can merge alone: a net10.0 app
does not run on the aspnet 11 image.


## Changes
- `net11.0` in `Directory.Build.props`. The five test projects drop
their own copy of `TargetFramework`, so `Directory.Build.props` is its
one owner.
- `Microsoft.AspNetCore.*`, `Microsoft.EntityFrameworkCore.*`,
`Npgsql.EntityFrameworkCore.PostgreSQL` and `Microsoft.Extensions.*`
move to 11.0.x. The sdk/aspnet images and `setup-dotnet` (ci, e2e) move
to 11.
- **Roslyn pinned to 5.9.0.** EF Core Design 11 needs
`Microsoft.CodeAnalysis.*` 5.9.0 or later.
`WolverineFx.RuntimeCompilation` → `JasperFx.RuntimeCompiler` pulls the
5.0.0 metapackages, whose members pin each other exactly (NU1608 with
warnings as errors). Mixed versions are a runtime risk, because
Scripting uses Roslyn internals. The compiler accepts `[4.14.0, 6.0.0)`,
so pinning both metapackages at 5.9.0 keeps every Roslyn assembly the
same version.
- **SQLitePCLRaw pin removed.** EF Core 11 requires 3.0.5 or later,
which already contains the fix for GHSA-2m69-gcr7-jv3q. The old 3.0.3
pin was now a downgrade (NU1109).
- **`Microsoft.Extensions.Hosting.Abstractions` reference removed.** The
framework provides it on .NET 11 (NU1510).

## .NET 11 behavior change: double → decimal
.NET 11 converts `double` to `decimal` with the exact binary value:
`(decimal)499.9` is `499.8999999999999772…`. 20 `PriceParserTests` cases
failed because `[InlineData]` passes `double` literals into `decimal`
parameters. They now convert through a round-trip string.

Production code never converts `double` to `decimal`. Prices reach
`decimal` only through strings: `PriceParser`, and
`JsonValue.ToString()` in `JsonPathExtractor`. The `(double)` casts go
the other way (sorting, metrics) and are not affected.
`docs/agent-notes.md` § Pricing records the rule.

## Gate (local, .NET SDK 11.0.100)
- `dotnet build`: 0 warnings, 0 errors (`TreatWarningsAsErrors`,
`latest-recommended` analyzers)
- backend: 2597 / 2597 passed
- postgres: 41 / 41 passed
- `dotnet ef migrations has-pending-model-changes`: no changes
- Wolverine codegen: no changes

[🤖 Generated by Claude Opus 5.5]

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant