Skip to content

Let the tool roll forward to a newer major runtime - #400

Merged
matt-richardson merged 1 commit into
mainfrom
mattrichardson/tool-rollforward
Nov 10, 2026
Merged

matt-richardson merged 1 commit into
mainfrom
mattrichardson/tool-rollforward

Conversation

@matt-richardson

Copy link
Copy Markdown
Contributor

Octopus.OctoVersion.Tool targets net10.0 and doesn't set RollForward, so its runtimeconfig uses the default (Minor). It won't start on a machine that has only the .NET 11 runtime. The tool fails with exit code 150.

OctopusDeploy's .NET 11 branch (OctopusDeploy/OctopusDeploy#48881) hits this on build agents that have only .NET 11. It works around it by setting DOTNET_ROLL_FORWARD=Major for the whole nuke build. Its plan names this change as the preferred fix.

RollForward=Major only takes effect when .NET 10 isn't installed, so agents that have .NET 10 keep running the tool on .NET 10. I chose it over LatestMajor, which would move every machine with .NET 11 onto it.

This doesn't need the .NET 11 SDK. The net11.0 target for OctoVersion.Core stays in the separate draft, #399.

🤖 Generated with Claude Code

OctoVersion.Tool targets net10.0 with no RollForward, so it uses the
default (Minor) and won't start on a machine that has only the .NET 11
runtime. OctopusDeploy's .NET 11 branch works around this by setting
DOTNET_ROLL_FORWARD=Major for its whole build.

RollForward=Major only applies when .NET 10 is missing, so machines
that have .NET 10 keep running the tool on it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@matt-richardson
matt-richardson requested a review from a team as a code owner November 10, 2026 19:17
@matt-richardson
matt-richardson merged commit 5f6897a into main Nov 10, 2026
4 checks passed
@matt-richardson
matt-richardson deleted the mattrichardson/tool-rollforward branch November 10, 2026 21:03
matt-richardson added a commit that referenced this pull request Nov 10, 2026
Resolves the RollForward comment conflict with #400 by keeping main's wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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