question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow the --roll-forward switch to be used with local tools

See original GitHub issue

The 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.

cc @KathleenDollard @vitek-karas @wli3

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:39 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
vitek-karascommented, May 10, 2022

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

1reaction
richlandercommented, May 15, 2022

I’m glad we have the ENVs. We should also allow roll-forward via the CLI.

@baronfel

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found