简体   繁体   English

在Visual Studio中的Package Manager控制台上更新多个包

[英]Update multiple packages on Package Manager Console in Visual Studio

In Visual Studio, Package Manager Console is faster than Package Manager Dialog, and that's why I always the console. 在Visual Studio中,程序包管理器控制台比程序包管理器对话框更快,这就是我总是控制台的原因。

However, there are certain time when I need to update 2/3 packages at a time. 但是,有一段时间我需要一次更新2/3个包。 Say, model + repository projects. 比如,模型+存储库项目。 Is there any command to specify these 2/3 packages at a time? 有没有命令一次指定这些2/3包? So that I do not need to type and wait one by one. 所以我不需要一个一个地打字和等待。

By the way, I am using VS 2013. Thanks. 顺便说一下,我正在使用VS 2013.谢谢。

You can separate the update commands using ; 您可以使用以下命令分隔更新命令; so it looks like this: 所以它看起来像这样:

Update-Package <Package1> -version <version1>; Update-Package <Package2> -version <version2>; Update-Package <Package3> -version <version3>

This way you can just run it and go grab a coffee while it's updating. 这样你就可以运行它,并在更新时去喝咖啡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用 Visual Studio NuGet 包管理器控制台安装包 - Cannot install packages using Visual Studio NuGet Package Manager Console 没有Visual Studio的软件包管理器,如何更新nuget软件包? - How to update nuget packages without package manager of visual studio? Visual Studio 包管理器控制台的键盘快捷键? - Keyboard Shortcut for the Visual Studio Package Manager Console? 在扩展中以编程方式访问visual studio的powershell控制台(包管理器控制台) - Access the powershell console (package manager console) of visual studio programmatically in an extension 如何在Visual Studio中更改程序包管理器控制台的字体大小 - How to change Font Size of Package Manager Console in Visual Studio 如何在 Visual Studio 外使用包管理器控制台 powershell - How to use Package Manager Console powershell outside visual studio 当我打开包管理器控制台时,Visual Studio 2015挂起 - Visual Studio 2015 hangs when I open the Package Manager Console Package Visual Studio 中的管理器控制台未显示命令提示符 - The Package Manager Console in Visual Studio is not displaying the command prompt Visual Studio添加自定义命令以在程序包管理器控制台中运行吗? - Visual Studio add custom command to run in Package Manager Console? 如何在Visual Studio 2013中自动化Package Manager控制台 - How to automate Package Manager Console in Visual Studio 2013
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM