I had the same problem, but it appeared after the command dotnet nuget locals all --clear
. I opened Tools -> NuGet Package Manager -> Package Manager Settings -> Package Source Mappings
and clicked Remove all
. Then I called dotnet restore
in terminal and everything worked.