Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
richlander opened this issue Nov 12, 2024 · 0 comments
Open

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

richlander opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
Area-Tools untriaged Request triage from a team member

Comments

@richlander
Copy link
Member

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Tools untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants