Can't install tools with `dotnet tool` command
When I try to install a dotnet tool from the terminal I always get an error. Example:
dotnet tool install docfx -g
Running this always gives me an exception with the following stacktrace:
This happens with all packages I try to install. It's telling me something about source mappings, but I don't understand if I have it configured incorrectly, or if I straight up need to disable it or something?
Very lost.8 Replies
Yes
have you been through
https://aka.ms/nuget-package-source-mapping?
Package Source Mapping
Describes package source mapping functionality and how to onboard
I have read through it but I only understand a fraction of what is being said
I changed the source mapping in VS for
*
to nuget.org but if I'm being honest I don't even know what that's supposed to do
I have seen one person report this problem and their "fix" was reinstalling windowsJust out of curiosity open a cli tool and make a new directory, go into that directory and type
"dotnet new nugetconfig"
The command ran and created this config
Disable what? Source mapping?
I don't understand. When I look at the package using the VS nuget package manager it even says "Package source mapping found"
But I can't install it from there because it's a tool