NuGet isn't showing any packages

前端 未结 4 1600
既然无缘
既然无缘 2021-02-07 05:22

\"Empty I\'ve tried going to the URL listed for the official package source with my browser and I only get a

4条回答
  •  一生所求
    2021-02-07 05:44

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

提交回复
热议问题