Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install all NuGet packages from specific source?

How to install all NuGet packages from specific source? Does exist console command for it?

like image 200
Alex Shkor Avatar asked Aug 04 '11 15:08

Alex Shkor


People also ask

How do I change the source of a NuGet package?

To manage your package sources, select the Settings icon or select Tools > Options. In the Options window, expand the NuGet Package Manager node and select Package Sources. To add a source, select +, edit the Name, enter the URL or path in Source, and then select Update.

How do I copy a NuGet package from one solution to another?

Open the Package Manager UI - Right-click on References and select Manage NuGet Packages... Open the Package Manager Console - From Tools > NuGet Package Manager , select Package Manager Console. Run NuGet restore - Right-click on the solution node in the Solution Explorer and select Restore NuGet Packages.

How do I download a NuGet package from the command line?

Download & Installation You can download the latest version from nuget.org/downloads. The latest version is always recommended, and 4.1. 0+ is required to publish packages to nuget.org. The file is not an installer, and it is the nuget.exe file directly.


1 Answers

You can use "-Source" on the "Install-Package" command or you can use the drop down to choose a configured source (when using the package manager console).

Here is the documentation for the Install-Package command: http://docs.nuget.org/docs/reference/package-manager-console-powershell-reference#Install-Package

To configure a custom package source, go to Tools -> Options -> Package Manager -> Package Sources and add your custom source to the list.

After adding it, you should be able to choose it when installing from the dialog, or you can use the drop down box in the console to choose it.

like image 118
davidfowl Avatar answered Oct 13 '22 20:10

davidfowl