bjorkstromm / depends

Tool for generating dependency trees for .NET projects
MIT License
537 stars 41 forks source link

The tool cannot be installed if no global nuget config is specified #7

Closed snowinmars closed 5 years ago

snowinmars commented 5 years ago

Requirements NuGet has three configuration layers

Remove all but solution configs. Try to install the depends tool through dotnet tool install

ER The tool installs successfully

AR error NU1101: Unable to find package dotnet-depends. No packages exist with this id in source(s): C:\Program Files\dotnet\sdk\NuGetFallbackFolder

How to fix Add the nuget source to the install command:

dotnet tool install --global dotnet-depends --add-source 'https://api.nuget.org/v3/index.json'

bjorkstromm commented 5 years ago

This is a behaviour of NuGet and the problem you are seeing is with installation of global tools using dotnet cli. Please open issue in dotnet/cli or nuget/home as these repos are better for tracking problems with installation of global tools.