Skip to content

dotnet tool install --roll-forward is remembered across uninstall #44818

Open
@richlander

Description

@richlander

I was testing the new --roll-forward feature on Windows with .NET 9 RC2. I seemed to remember the --roll-forward value after uninstall, which I would not expect.

The tool: https://www.nuget.org/packages/NuGet.PackageSourceMapper

Command: dotnet tool install -g --roll-forward NuGet.PackageSourceMapper

Given:

  • The tool is built with .NET 6.
  • The tool does not have roll-forward configured.
  • I do not have .NET 6 installed.
  • I have .NET 8+9 installed.
  • I am (un)installing the tool with -g.

Here's my process:

  • Install tool
  • Validate that it fails to launch, reporting a missing runtime.
  • Uninstall tool
  • Install tool with --roll-forward
  • Attempt to run the tool. It works.
  • Uninstall the tool
  • Install the tool w/o roll-forward
  • It still works, unexpectedly

I'll test again with .NET 9 GA later today.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions