Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

NuGetPackageInstallerException while trying to install tools with `dotnet tool` command in vs-code

$
0
0

When I try to install a dotnet tool from the terminal I always get an error. Example: dotnet tool install --global dotnet-efRunning this always gives me an exception with the following stacktrace:

Unhandled exception:Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageInstallerException:Package Source Mapping is enabled, but no source found under thespecified package ID: dotnet-ef.

I tried:

dotnet tool install -g dotnet-ef --ignore-failed-sources

and:

dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

but it still not working


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>