Build with the .NET 11 SDK and C# 15
Merged
BR
19d ago+15+15+01234567890123456789-8-8-0123456789
Motivation
Move builds to the current .NET SDK and language version.
Modifications
- Update
global.jsonto SDK11.0.100(rollForward: latestFeature). - Set
LangVersionto 15 inDirectory.Build.props. - Install the
11.0.xSDK in all GitHub Actions workflows.- The Linux and ARM
testjobs keep8.0.x,9.0.xand10.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.
- The Linux and ARM
- 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