Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 820
Wahid Shalaly Avatar asked Apr 17 '11 11:04

Wahid Shalaly


People also ask

What is the NuGet package feed URL?

The default source is nuget.org, which has the following package source URL: https://api.nuget.org/v3/index.json .

How do I connect to a NuGet server?

Regardless of how packages are hosted, you access them by adding them to the list of available sources in NuGet. Config . This can be done in Visual Studio as described in Package Sources, or from the command line using nuget sources . The path to a source can be a local folder pathname, a network name, or a URL.


2 Answers

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.

like image 166
skolima Avatar answered Oct 07 '22 22:10

skolima


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.

like image 26
rikoe Avatar answered Oct 07 '22 21:10

rikoe