Allow the --roll-forward switch to be used with local tools
See original GitHub issueThe runtime-option --roll-forward
is settable when using the exec
SDK command but currently not when invoking a repo tool with dotnet tool run
. If a repo tool doesn’t define a roll-forward policy then there’s no way to make a tool run on a higher shared framework version.
I’m not up-to-date on the decisions being made around repo tools but naively I would expect that option to be usable with repo tools.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:39 (24 by maintainers)
Top Results From Across the Web
Select which .NET version to use
This article explains the policies used by the .NET tools, SDK, and runtime for selecting versions. These policies provide a balance between ...
Read more >global.json overview - .NET CLI
A version must be specified with a rollForward value, unless you're setting it to latestMajor . The default roll forward behavior is determined ......
Read more >Problems with rollforward to PIT with redirected restore
I have investigated a bit further and found that the IGNORE ROLLFORWARD CONTAINER OPERATIONS is used to avoid the redo of the ALTER...
Read more >ROLLFORWARD DATABASE command
The ROLLFORWARD DATABASE command recovers a database by applying transactions that are recorded in the database log files. The ROLLFORWARD DATABASE command ...
Read more >How do I roll forward a binder in CCH® ProSystem fx ...
In the Local File Room, select the binder to roll forward. Right-click the binder and select Roll Forward Binder. Or go to Tools...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can set the roll-forward option via env. variable
DOTNET_ROLL_FORWARD
, it’s not exactly convenient but might be useful as a workaround. Note that the env. variable will override whatever the tool has in its config file.There are two settings which apply to this scenario:
Major
- which will roll forward to the closest available version including another major version. So if the tool asks for 2.1 and there’s 3.1 and 6 on the machine, it will use 3.1 (since it’s closer than 6).LatestMajor
- which will roll forward to the highest version available, so if the tool asks for 2.1 and there’s 3.1 and 6 on the machine, it will use 6.Original design: https://github.com/dotnet/designs/blob/main/accepted/2019/runtime-binding.md#configuration-knobs Technical design doc: https://github.com/dotnet/runtime/blob/main/docs/design/features/framework-version-resolution.md#roll-forward
I’m glad we have the ENVs. We should also allow roll-forward via the CLI.
@baronfel