Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget packages without nuget package manager?

What does a nuget package actually consist of, apart from the compiled libraries?

Is it possible to download these packages without using the package manager and use them elsewhere?

Thanks!

like image 241
virtualmic Avatar asked Apr 20 '11 09:04

virtualmic


People also ask

How do I download NuGet packages in Visual Studio?

Navigate to NuGet.org and search for the package you want to install. Select Package Manager, and then copy the Install-Package command. In Visual Studio, select Tools > NuGet Package Manager > Package Manager Console to open the package manager console.

How do I install missing NuGet packages in Visual Studio 2019?

Restore packages manually using Visual StudioEnable package restore by choosing Tools > Options > NuGet Package Manager. Under Package Restore options, select Allow NuGet to download missing packages. In Solution Explorer, right click the solution and select Restore NuGet Packages.


4 Answers

You can download them from http://packages.nuget.org/api/v1/package/<PACKAGE_YOU_WANT>/ using your browser.

You can get the package name from: http://packages.nuget.org/Packages

Example: jQuery UI (Combined Library) Package is at: http://packages.nuget.org/packages/jQuery.UI.Combined To download: http://packages.nuget.org/api/v1/package/jQuery.UI.Combined/

like image 100
gth685f Avatar answered Oct 10 '22 12:10

gth685f


What does a nuget package actually consist of, apart from the compiled libraries?

Take a look here. Basically it is a file with the .nupkg extension which is nothing more than a .zip file containing the structure explained in the previous link and some xml metadata.

Is it possible to download these packages without using the package manager and use them elsewhere?

Sure, simply download the .nupkg file.

like image 43
Darin Dimitrov Avatar answered Oct 10 '22 12:10

Darin Dimitrov


Based on @Gth685's answer, I made a Google Chrome extension that adds download links to package pages on http://nuget.org

https://chrome.google.com/webstore/detail/nutake/ibhhbcaipjilldjkhhblhgdedjgoecap?hl=en

like image 7
Colonel Panic Avatar answered Oct 10 '22 10:10

Colonel Panic


Just so everyone knows, you can just create an account on nuget.org. Once logged in a download link will appear on the left toolbar that will allow you to directly download any .nupkg file.

like image 2
Mike Lorenzana Avatar answered Oct 10 '22 12:10

Mike Lorenzana