Skip to content

Target .NET 10 and 11; drop .NET 8 and 9 - #763

Merged
Andy Gerlicher (AndyGerlicher) merged 1 commit into
mainfrom
dev/angerlic/net11
Nov 10, 2026
Merged

Andy Gerlicher (AndyGerlicher) merged 1 commit into
mainfrom
dev/angerlic/net11

Conversation

@AndyGerlicher

Copy link
Copy Markdown
Member

.NET 8 is out of support as of today, so this drops .NET 8 and 9 and moves to .NET 10 and 11.

  • Target frameworks: net472;net10.0;net11.0 (removed net8.0, net9.0)
  • Compile contracts: Microsoft.Build 17.14.28 (latest 17.14 patch) for all TFMs; removed net8.0-specific 17.11 override and unused FileSystemGlobbing version properties
  • Tool: net8.0 -> net10.0; .NET SDK 8/9 now report an unsupported SDK error
  • Targets: removed net8/net9 UsingTasks; net10.0 used for MSBuild >= 18.0; error message updated to ".NET 10.0 or above"
  • global.json: 11.0.100 GA, prerelease disabled
  • Pipelines: removed .NET 8/9 SDK installs and test runs; .NET 11 no longer preview
  • Docs: install link points to .NET 10

Validated locally: clean restore (empty packages folder), build with 0 warnings, and unit tests pass on net472/net10.0/net11.0.

- Remove net8.0/net9.0 targets (net472, net10.0, net11.0 remain)
- Compile against Microsoft.Build 17.14.28 for all TFMs
- Tool targets net10.0; reject .NET SDK 8/9
- Update UsingTask gating to MSBuild 18.0+ for net10.0
- Use .NET 11 GA SDK in global.json and pipelines

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f883709c-c469-4f59-b7a4-f71ad360a07d
@AndyGerlicher
Andy Gerlicher (AndyGerlicher) merged commit fc85114 into main Nov 10, 2026
5 checks passed
@AndyGerlicher
Andy Gerlicher (AndyGerlicher) deleted the dev/angerlic/net11 branch November 10, 2026 19:51
@jeffkl

Copy link
Copy Markdown
Collaborator

Andy Gerlicher (@AndyGerlicher) we should probably rev the major version to 13.0 as well, just thought of that.

https://github.com/microsoft/slngen/blob/main/version.json#L3

@evgenyfedorov2

Copy link
Copy Markdown
Member

Andy Gerlicher (@AndyGerlicher) please take a look at releases, publishing to nuget.org has been broken for a while.

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.

5 participants