I have been using Visual Studio and NuGet for a long time and NuGet
was working a few days ago. Can someone figure out why this is
happening and what I can do to solve it?
The issue could be more related to network, nuget cache conflicts or even nuget agent. So there are a number of factors that can contribute to this problem. After my research, many users are facing the same problem as yours. To troubleshoot it, please follow my suggestions:
Suggestions
clean the nuget cacheto eliminate cache interference.
select Available package source(Tools-->Options-->Nuget Package Manager-->Package Source) and add a new source link like http://packages.nuget.org/v1/FeedService.svc/
. In this point, change a service point to check whether the network interference the previous service link.
try to add proxy settings into Nuget.Config file. Refer to this link for details: Nuget Config Section & Nuget Proxy Settings.
More information you can refer to this.
In addition, if VS2019 is not the latest version, please update it to the latest version.
If your issue still persists, please feel free to let us know.