Skip to content

Add a net11.0 target to OctoVersion.Core - #399

Merged
matt-richardson merged 5 commits into
mainfrom
mattrichardson/net11
Nov 16, 2026
Merged

matt-richardson merged 5 commits into
mainfrom
mattrichardson/net11

Conversation

@matt-richardson

@matt-richardson matt-richardson commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Part of DPT-3862 (Make .NET 11 available on the build platform).

.NET 11 shipped on 2026-11-10 (SDK 11.0.100).

  • Octopus.OctoVersion.Core targets net11.0 alongside net10.0, and the tests run on both.
  • The tool stays on net10.0. It now sets RollForward=Major, so it runs on a machine that has only a newer runtime. Where .NET 10 is installed, it still runs on .NET 10. I chose Major over LatestMajor so agents that have both keep running it on 10.
  • Cake.OctoVersion stays on net10.0, the runtime Cake runs on.
  • global.json moves to SDK 11.0.100, which is needed to build net11.0. CI installs only .NET 11. The net10.0 tests roll forward to the .NET 11 runtime.
  • The build project targets net11.0 and uses Octopus.Nuke.Common instead of Nuke.Common. Nuke 10.1.0 crashes at startup on .NET 11. Octopus.Nuke's dependencies also replace the NuGet.Packaging and System.Security.Cryptography.Xml overrides.
  • The build uses OctoVersion tool 2.0.7, the first release that rolls forward to a newer major runtime.

global.json now needs SDK 11, so the prettybot job will fail until tool-resharper-cli has SDK 11 (OctopusDeploy/tool-containers#334).

This is a draft until we decide we want net11.0 assets in the packages. .NET 11 is a short-term release, but its support ends on 2028-11-14, the same day as .NET 10.

🤖 Generated with Claude Code

.NET 11 shipped on 2026-11-10. Target net11.0 alongside net10.0 in
OctoVersion.Core, and run the tests on both. global.json moves to SDK
11.0.100, which is needed to build net11.0, and CI installs the .NET 10
runtime as well.

The tool stays on net10.0 but rolls forward to a newer major runtime
when .NET 10 isn't installed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolves the RollForward comment conflict with #400 by keeping main's wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
matt-richardson and others added 3 commits November 16, 2026 16:25
The build project targets net11.0, the net10.0 tests roll forward to the
.NET 11 runtime, and the OctoVersion tool used by the build moves to 2.0.7,
which rolls forward too. CI no longer installs .NET 10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Octopus.Nuke.Common 11.0.474 runs on .NET 11 from the apphost, and its
dependencies are new enough that the NuGet.Packaging and
System.Security.Cryptography.Xml overrides are no longer needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@matt-richardson
matt-richardson marked this pull request as ready for review November 16, 2026 05:37
@matt-richardson
matt-richardson merged commit 358c90e into main Nov 16, 2026
4 checks passed
@matt-richardson
matt-richardson deleted the mattrichardson/net11 branch November 16, 2026 05:37
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.

2 participants