dotnet / dotnet/sdk

`dotnet tool update -g --all` command fails when a prerelease version of the tool is installed in-between

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

Description

### Describe the bug

I have a list of dotnet tools installed on my machine, consisting of both stable and prerelease versions (some of them don't have a stable version yet).

`dotnet tool update -g --all` command fails when a prerelease version of the tool is installed.

There should be a state that indicates a tool is in prerelease. While updating with the `--all` parameter, the update should process following that state or skip those tools altogether when the `--prerelease` flag is not indicated.

Indicating --prerelease is a risky option as not all tools needs to moved to unstable version.

But now it fails in-between. Inconsistent behavior.

### To Reproduce

Install a stable and prerelease version (especially the one that has no stable release so far) of the tools together and try to updated with the below command.

```
dotnet tool update -g --all
```

### Exceptions (if any)

So and so tool not found in the configured NuGet feeds.

### Further technical details
- Include the output of `dotnet --info`
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

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.