Wahid Shalaly
Wahid Shalaly

Reputation: 2187

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

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.

Upvotes: 80

Views: 165045

Answers (6)

Rosdi Kasim
Rosdi Kasim

Reputation: 25976

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. 🤦‍♂️

Upvotes: 14

skolima
skolima

Reputation: 32684

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.

Upvotes: 192

Jeremy
Jeremy

Reputation: 243

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'

Upvotes: -2

rikoe
rikoe

Reputation: 1699

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.

Upvotes: 32

Wahid Shalaly
Wahid Shalaly

Reputation: 2187

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.

Upvotes: 2

Talljoe
Talljoe

Reputation: 14827

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.

Upvotes: 27

Related Questions