How to install all NuGet packages from a specific source?

How to install all NuGet packages from a specific source? Is there a console command for this?

+6
source share
1 answer

You can use "-Source" in the "Install-Package" command, or you can use the drop-down list to select the 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 your own package source, open "Tools" → "Options" → "Package Manager" → "Package Sources" and add your own source to the list.

After adding it, you can select it during installation in the dialog box, or you can use the drop-down list in the console to select it.

+8
source

Source: https://habr.com/ru/post/894303/


All Articles