Skip to content

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

Open
@veikkoeeva

Description

@veikkoeeva

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions