What is the URL for NuGet Gallery to access (nuget.org) from VS2010?

.NetVisual Studio-2010Nuget

.Net Problem Overview


What is the URL for NuGet Gallery to access (nuget.org) from VS2010 via Package Manager Console? I tried to use the Web site URL (http://nuget.org/List/Packages) but it didn't work.

.Net Solutions


Solution 1 - .Net

With NuGet 3, the url has changed again, it's now https://api.nuget.org/v3/index.json.

Microsoft Docs should always list the latest feed address: Use packages from nuget.org > Enable the upstream on an existing feed.

Solution 2 - .Net

The Microsoft Go link in the accepted answer above is an old one, the correct URL is: http://go.microsoft.com/fwlink/?LinkID=230477

This points to https://www.nuget.org/api/v2/, which is the NuGet version 2 package source feed.

I tend to use the actual URL, not the Go link anyway. As proven by the two different Go links, there is no guarantee it won't change as well, so I find it more explicit to point to the actual URL.

The Microsoft Go links are, in my opinion, a bad idea. They completely obscure the actual web URL, which defeats the purpose of HTTP addresses in the first place.

Solution 3 - .Net

http://go.microsoft.com/fwlink/?LinkID=206669

That maps to: http://packages.nuget.org/v1/FeedService.svc/ but you should use the Go link to future-proof yourself.

Solution 4 - .Net

The most up to date nuget package url should be documented here:

Microsoft Nuget FAQ

(as at this moment, that would be: https://api.nuget.org/v3/index.json)

For the life of me, I do not understand why this is not displayed prominently on nuget.org landing page. 臘‍♂️

Solution 5 - .Net

I found that http://go.microsoft.com/fwlink/?LinkID=206669 points to the full NuGet Gallery while the default registered url https://go.microsoft.com/fwlink/?LinkID=206669 (watch the protocol: Https) points only to the Official NuGet package source.

Solution 6 - .Net

For reference, you can check what the supported URLs are by going directly to the NuGet site here: https://www.nuget.org and looking under the heading 'NuGet Feed Locations'

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWahid ShalalyView Question on Stackoverflow
Solution 1 - .NetskolimaView Answer on Stackoverflow
Solution 2 - .NetrikoeView Answer on Stackoverflow
Solution 3 - .NetTalljoeView Answer on Stackoverflow
Solution 4 - .NetRosdi KasimView Answer on Stackoverflow
Solution 5 - .NetWahid ShalalyView Answer on Stackoverflow
Solution 6 - .NetJeremyView Answer on Stackoverflow