NuGet staying 'Retrieving Information' or 'No results found' in VS 2013

蹲街弑〆低调 提交于 2019-12-01 05:10:54

问题


All of a sudden, NuGet stopped working for all projects. I've tried it on 4 different computers in the office, and all of them stopped working.

If I go to 'Manage NuGet Packages', it says 'No items found' when the node Online > nuget.org is selected.

This was working some time ago I last checked, and all of a sudden it stopped. Any ideas?

I am using Visual Studio 2013. I've tried removing and reinstalling NuGet from Tools & Extensions, to no avail.


回答1:


I have the same problem here.

https://twitter.com/nuget/status/451324276172283904 they're on the case.

In the mean time I used this trick: http://www.hanselman.com/blog/HowToAccessNuGetWhenNuGetorgIsDownOrYoureOnAPlane.aspx

(just grabbed the cache from the various computers at the office and set up a common folder - that way we have something for later, too)




回答2:


I started the VS with /Log parameter and in file %APPDATA%\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml there was a record that packages\repositories.config was read-only. So, I checked it out, and it worked.




回答3:


Try "Run As Administrator" when launching Visual Studio.




回答4:


Try changing ".\myapp\packages\repositories.config" from Read Only to Read Write.



来源:https://stackoverflow.com/questions/22810936/nuget-staying-retrieving-information-or-no-results-found-in-vs-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!