Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet isn't showing any packages

Tags:

Empty NuGet Dialog 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): enter image description here

Screenshot from home PC of Settings (this one sees all packages): enter image description here

PCs are currently RIGHT next to each other - both on same wired network connected to same router, etc.!

like image 319
Steve Barron Avatar asked Aug 11 '11 16:08

Steve Barron


People also ask

How do I fix a NuGet package error?

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.

How do I enable NuGet packages?

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.

How do I get NuGet package in Visual Studio 2017?

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.


2 Answers

Try adding a new package source from that window and set the source to http://packages.nuget.org/v1/FeedService.svc

like image 155
Rick Liddle Avatar answered Nov 13 '22 00:11

Rick Liddle


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:

  1. Uninstall NuGet from Windows (Control Panel -> Programs and Features).
  2. Uninstall NuGet Package Manager from Visual Studio 2010 (Tools -> Extension Manager).
  3. Close Visual Studio.
  4. Download and install the latest version of NuGet Package Manager (2.0.30625.9003 at the time of writing) from http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c.

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/ .

like image 25
Ifligus Avatar answered Nov 12 '22 22:11

Ifligus