How to install all NuGet packages from specific source? Does exist console command for it?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With