Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install NuGet-packages without internet connection?

Currently I'm developing on a virtual pc which is not allowed internet access. I managed to get the NuGet.Tools.vsix to add NuGet to Visual Studio 2010, but cannot seem to find out how to deploy NuGet-packages offline.

For example, I downloaded EntityFramework 5.0.0 nuget.org and moved it to my virtual pc. How should I perform the last step of deploying this package to my solution?

Thanks in advance

like image 885
Herman Cordes Avatar asked Aug 20 '13 05:08

Herman Cordes


People also ask

How do I install Visual Studio offline packages?

To download a local installation package, select the Download all, then install option in the dropdown at the bottom of the Workloads tab of the Visual Studio Installer.

How do I download NuGet packages locally?

Open your file, and inside packageSources add a new local key following this structure <add key="local" value="path" /> . This path can be a relative or absolute from NuGet. config folder. Now you can install a package locally with dotnet add package and source option to local.

How do you specify the NuGet source if a build machine does not have the Internet connection?

Click the Package Sources tab within the settings dialog, followed by the 'plus' icon in the top left to add a new package source. Enter the Name and Source of your local repository. The name can be any string and will be the name displayed in the NuGet Package Manager within Visual Studio.

How do I force a NuGet package to install?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.


1 Answers

1) Tools - > Options -> Package Manager

2) Then click Source and Add.

3) Then You can find on the list and istall.

like image 73
Norbert Pisz Avatar answered Nov 15 '22 04:11

Norbert Pisz