Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to download packages from nuget.org then do an offline installation into Visual Studio?

My visual studio is installed on a machine which doesn't have internet connection so I can't download and install packages from NuGet Manager in VS.
So I am looking for a way to use another machine which has internet connection to download packages and then install on VS.

like image 724
JatSing Avatar asked Nov 14 '11 10:11

JatSing


People also ask

How do I download NuGet packages locally?

Menu Tools → Options → Package Manager Click OK. Drop your NuGet package files in that folder. Go to your Project in Solution Explorer, right click and select "Manage NuGet Packages". Select your new package source.

How do I download NuGet packages in Visual Studio?

Install packages from NuGet.org 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.


1 Answers

  1. First, download the .nupkg file:

    • Follow the instructions at How to download a Nuget package without nuget.exe or Visual Studio extension?

    • Or use my Google Chrome extension NuTake

  2. Secondly, install the .nupkg file into your project

    • Follow instructions at How to install a Nuget Package .nupkg file locally?
like image 170
Colonel Panic Avatar answered Sep 20 '22 19:09

Colonel Panic