Skip to content

Use the default .NET roll-forward policy for the platform tools - #685

Merged
soujay merged 6 commits into
masterfrom
roll-forward-latest-patch
Oct 26, 2026
Merged

soujay merged 6 commits into
masterfrom
roll-forward-latest-patch

Conversation

@soujay

@soujay soujay commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

ServiceControl is built to require one exact .NET runtime patch version, and roll-forward is disabled, so it won't start if that exact version is not installed. This PR passes --roll-forward Minor to dotnet when starting the platform tools. Minor is the .NET default, so the tools run on the newest installed patch of the required version, or on a newer minor version of the same major if that one isn't installed. The command-line option takes priority over DOTNET_ROLL_FORWARD and the rollForward setting in runtimeconfig.json. ServicePulse is started the same way; it already uses Minor by default, so its behavior doesn't change.

Roll-forward only moves to newer versions. If the installed runtime is older than the one ServiceControl requires, it still won't start

Eg:
If ServiceControl requires .NET 10.0.11.

.NET 10 runtimes installed With this PR
10.0.11 ✅ Runs on 10.0.11
10.0.11 and 10.0.12 ✅ Runs on 10.0.12 (the newest installed patch)
10.0.12 only ✅ Runs on 10.0.12
10.0.9 only ❌ Fails to start (roll-forward never moves to an older version)

@soujay soujay changed the title Add override to have the SC tools run on a newer installed .net Patch Add option to have the SC tools run on a newer installed .Net Patch Oct 22, 2026
@soujay soujay changed the title Add option to have the SC tools run on a newer installed .Net Patch Let ServiceControl tools run on a newer installed .NET patch Oct 22, 2026
Comment thread src/Particular.PlatformSample/AppLauncher.cs Outdated
Comment thread src/Particular.PlatformSample/AppLauncher.cs Outdated
Comment thread src/Particular.PlatformSample/AppLauncher.cs
Comment thread src/Particular.PlatformSample/AppLauncher.cs Outdated
soujay and others added 3 commits October 22, 2026 17:25
Co-authored-by: Michelle Chamberlin <michelle.chamberlin@particular.net>
Remove redundant comment about .NET runtime patch version.
Comment thread src/Particular.PlatformSample/AppLauncher.cs Outdated
@soujay soujay changed the title Let ServiceControl tools run on a newer installed .NET patch Use the default .NET roll-forward policy for the platform tools Oct 23, 2026
@soujay
soujay marked this pull request as ready for review October 23, 2026 23:20
@soujay
soujay requested a review from boblangley October 23, 2026 23:46
@soujay
soujay enabled auto-merge (squash) October 26, 2026 15:55
@soujay
soujay merged commit 8a7b7a8 into master Oct 26, 2026
4 checks passed
@soujay
soujay deleted the roll-forward-latest-patch branch October 26, 2026 16:00
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.

4 participants