dotnet tool install --global
reinstalls even if the same version is already present
#40818
Labels
Area-Tools
good first issue
Issues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.
Milestone
Describe the bug
dotnet tool install --global
reinstalls even if the same version is already installed. But it should ignore it as in previous .NET SDK versions. This behavior was probably introduced in #37311. This causes the folder with the installed tool to be cleaned up every timedotnet tool install
is called from a build script. Previously, this step was failing. Probably there are some workarounds to keep the previous behavior?To Reproduce
Run
dotnet tool install --global tailwindcss-dotnet --version 1.0.0
when this tool is already installed.To ensure that it tries to reinstall, just open the folder where this tool is installed:
C:\Users\user\.dotnet\tools\.store\tailwindcss-dotnet\1.0.0\tailwindcss-dotnet\1.0.0
in explorer to lock the folder. In that case, it says:Further technical details
The text was updated successfully, but these errors were encountered: