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

Clarify error message when trying to update dotnet tools when there are pre-release versions present #47320

Open
veikkoeeva opened this issue Mar 6, 2025 · 0 comments
Assignees
Labels
Area-Tools untriaged Request triage from a team member

Comments

@veikkoeeva
Copy link

Is your feature request related to a problem? Please describe.

Install any pre-release version of dotnet tool. Then subsequently update tools f.ex. with dotnet tool update --all --local.

The following error message is given

is not found in NuGet feeds https://api.nuget.org/v3/index.json.

The issue here is that that does exist in that feed. One might be led to think there's a temporary glitch, the package has been removed from the feed or something else and may examine in vain.

Instead one should issue the command like dotnet tool update --all --local --prerelease to install also pre-release packages.

Describe the solution you'd like

To have a clearer error message. For instance something like

Tool was found but only exists in prerelease versions. Run the command with --prerelease to install prerelease versions of tools. Then either update none of the tools or proceed to update the ones that are not pre-release version.

Additional context

This was originally brought up in NuGet channel in DotNetEvolution Discord.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels Mar 6, 2025
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