Skip to content

Please add --source to dotnet tool install #21355

Open
@richlander

Description

There should be a way to specify a registry. Currently, it seems impossible to avoid searching NuGet.org.

I did the following:

dotnet new console -o app
cd app
dotnet pack
dotnet tool install -g app --add-source bin/Debug

This tool was installed: https://www.nuget.org/packages/app/

That's not what I want. It is entirely reasonable to create local tools that overlap with nuget.org ones. This particular tool doesn't appear to be name squatting, but it is easy to do.

Instead, there should an option like:

dotnet tool install -g app --source bin/Debug

I remember having the conversations on this issue. I don't remember why we chose the approach we did. Perhaps @KathleenDollard or @wli3 remember.

Something to consider for .NET 6.0.200.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions