NuGet isn't showing any packages

前端 未结 4 1597
既然无缘
既然无缘 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/ .

    0 讨论(0)
  • 2021-02-07 05:48

    Had this issue today. My list wasn't empty, but it only had 6 pages and nothing I needed was available.

    The flag in the top right corner showed there was an updated to the NPM. Updating via that didn't restore the missing packages.

    There was an update to Nuget yesterday (2014-04-02).

    • Tools > Extensions & Updates > "Nuget Package Manager for Visual Studio 2013" > Uninstall.
    • Closed Visual Studio then installed the newest version from
      • VS 2010/2012: http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c
      • VS 2013: http://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca
    • Started up Visual studio and NPM worked again
    0 讨论(0)
  • 2021-02-07 05:55

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

    0 讨论(0)
  • 2021-02-07 05:57

    I had similar issue with VS2015. The default package feed (https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/) returned no results. Switched to https://www.nuget.org/api/v2 and was able to find packages again.

    Tools->Options->Nuget Package Manager->Package Sources and add new Package Source.

    0 讨论(0)
提交回复
热议问题