Allow the command line app to roll forward to .NET 9 runtime #275
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
It's possible for a system running a build to have only the .NET 9 SDK installed, without the .NET 8 runtime. In this case, setting environment variables to force a roll forward to .NET 9 is required.
Modifications
Set the roll forward configuration to Major in the command line app's runtimeconfig.json.
Results
SDK-style builds will now automatically roll forward to the .NET 9 runtime to run Yardarm if the .NET 8 runtime is unavailable. For best compatibility, the .NET 8 runtime is still prefered if present.