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 update -g --all command fails when a prerelease version of the tool is installed in-between #46542

Open
egvijayanand opened this issue Feb 5, 2025 · 1 comment
Labels
Area-Tools untriaged Request triage from a team member

Comments

@egvijayanand
Copy link

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
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels Feb 5, 2025
@egvijayanand
Copy link
Author

Also update the documentation, there is no mention about this --all option.

Can't infer the current behavior.

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-tool-update

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

1 participant