Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet Package manager stuck on "Retrieving information..." on VS 2013

Using VS 2013 with NuGet Package Manager installed, I can view all Installed packages, but when I pick Updates or Online, I get an endless busy indicator showing "Retrieving information..."

I've verified I have a good connection. I uninstalled/reinstalled NuGet Package Manager.

Any other suggestions?

Thanks

like image 870
Douglas Avatar asked Dec 03 '13 20:12

Douglas


People also ask

How do I restore NuGet packages in Visual Studio 2013?

Restore packages manually using Visual StudioEnable 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 open the package manager console in Visual Studio 2013?

Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command.


2 Answers

I'm using VS 2013 and all of suggested solutions has failed. I solved the problem by applying the following method :

  1. Open package manager console in Visual Studio
  2. Type: [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12

This will change the connection security protocol to nuget as specified in this article: Deprecating TLS 1.0 and 1.1 on NuGet.org

like image 193
kpaolo Avatar answered Sep 20 '22 08:09

kpaolo


May be it will help someone. My problem was with Nuget Package Manager. I've just updated its version.

To update Nuget Package Manager you need go to the menu under Tools -> Extensions and Updates -> Updates tab -> Visual Studio Gallery.

like image 32
Sergey_T Avatar answered Sep 20 '22 08:09

Sergey_T