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