dotnet / dotnet/sdk

`dotnet tool install --roll-forward` is remembered across uninstall

Open
#44,818 1 comment 0 reactions 1 assignee Claimed by @edvilme View on GitHub
Area-Tools
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.