Reputation: 2336
After updating Visual Studio to 2015 Update 2 I kept getting a "No packages found" error in NuGet Package Manager, despite browsing/searching for packages that I knew existed and which could be added from the Package Manager Console.
This is frustrating as the NuGet site clearly shows the packages are available. As a workaround I can install them via the Package Manager Console - but the GUI just shows "No packages found".
Upvotes: 18
Views: 26267
Reputation: 18168
In my case I was looking for a prerelease and forgot to check Include prerelease
Upvotes: 6
Reputation: 545
Here are the troubleshooting steps I would take when looking into this issue.
Connectivity & DNS
Proxy Issue
Proxy Config Section
<system.net>
<defaultProxy enabled = "true" useDefaultCredentials = "true">
<proxy autoDetect="false" bypassonlocal="false"
proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>
</system.net>
Upvotes: 16
Reputation: 17469
Another reason people may end up seeing "No package found" is that the UI defaults to "Installed" packages. Simply switch to the "Browse" tab, instead of the "Installed" tab.
Upvotes: 6
Reputation: 2336
As of VS2015 Update 2 the default and only feed installed is MS-Curated "Microsoft and .NET", https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/
This feed is missing a LOT of commonly used packages.
You can resolve this by simply adding the "normal" NuGet feed with all packages:
Click the green "add" icon, and add the following feed:
Upvotes: 28