Build with the .NET 11 SDK and C# 15

Merged
BR
19d ago
+15-8

Motivation

Move builds to the current .NET SDK and language version.

Modifications

  • Update global.json to SDK 11.0.100 (rollForward: latestFeature).
  • Set LangVersion to 15 in Directory.Build.props.
  • Install the 11.0.x SDK in all GitHub Actions workflows.
    • The Linux and ARM test jobs keep 8.0.x, 9.0.x and 10.0.x, which they need to run tests on net8.0, net9.0 and net10.0.
    • In jobs that don't run tests on .NET 10, 10.0.x → 11.0.x: Windows tests (net48 only), coverage report, publish, pages and CodeQL.
  • No target frameworks change, and no net11.0 target is added.

Results

  • A full Release rebuild has 0 warnings on SDK 10.0.404 and on SDK 11.0.100, so the SDK and C# 15 add no new warnings. The compiler gets /langversion:15.
  • Local checks on SDK 11:
    • The net10.0 tests pass (281 of 281).
    • The net8.0 docs build works.
    • dotnet pack -p:Version=… works.
  • Not run locally: the net8.0, net9.0, net48 and ARM tests. CI covers these.

šŸ¤– Generated with Claude Code