如何从特定来源安装所有 NuGet 包? [英] How to install all NuGet packages from specific source?

查看:79
本文介绍了如何从特定来源安装所有 NuGet 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从特定来源安装所有 NuGet 包?是否存在控制台命令?

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

推荐答案

您可以在Install-Package"命令上使用-Source",也可以使用下拉菜单选择配置的源(使用包管理器时控制台).

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).

以下是 Install-Package 命令的文档:http://docs.nuget.org/docs/reference/package-manager-console-powershell-reference#Install-Package

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.

这篇关于如何从特定来源安装所有 NuGet 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆