I've tried going to the URL listed for the official package source with my browser and I only get an empty list. I also tried Phil Haack's source found while Binging this issue and got a similar empty list.
It could be firewall related - I'm at work, now, and this worked just fine the other day when I started playing with NuGet at home. But NuGet seems to be using my IE settings and I am able to access StackOverflow, as you can see. :)
Is there a way to download the packages to a local folder? I would then add that folder to the list of sources for NuGet to check.
Thanks!
Screenshot from work PC of Settings (this one has no packages):
Screenshot from home PC of Settings (this one sees all packages):
PCs are currently RIGHT next to each other - both on same wired network connected to same router, etc.!
Quick solution for Visual Studio usersSelect the Tools > NuGet Package Manager > Package Manager Settings menu command. Set both options under Package Restore. Select OK. Build your project again.
Enable package restore by choosing Tools > Options > NuGet Package Manager. Under Package Restore options, select Allow NuGet to download missing packages. In Solution Explorer, right click the solution and select Restore NuGet Packages.
Starting in Visual Studio 2017, NuGet and the NuGet Package Manager are automatically installed with any . NET-related workloads. Install it individually by selecting the Individual components > Code tools > NuGet package manager option in the Visual Studio installer.
Try adding a new package source from that window and set the source to http://packages.nuget.org/v1/FeedService.svc
I was experiencing the same error in VS 2010. However, the accepted answer by Rick Liddle wasn't working for me. The strange thing is that I could get a list of available packages from the Package Manager Console no problem, so it still wasn't a connectivity issue.
Finally I realized that a newer version of NuGet was available, so I installed it, and it worked! Here are the steps:
That's it. As an aside, I noticed that the URI of the NuGet Official Package Source has changed to https://nuget.org/api/v2/ .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With