在Visual Studio中的程序包管理器控制台上更新多个程序包 [英] Update multiple packages on Package Manager Console in Visual Studio
问题描述
在Visual Studio中,程序包管理器控制台"比程序包管理器对话框"更快,这就是为什么我总是使用控制台.
In Visual Studio, Package Manager Console is faster than Package Manager Dialog, and that's why I always the console.
但是,在某些时候我需要一次更新2/3软件包.说,模型+存储库项目.是否有任何命令一次指定这些2/3软件包?这样我就不必一次打字然后等待.
However, there are certain time when I need to update 2/3 packages at a time. Say, model + repository projects. Is there any command to specify these 2/3 packages at a time? So that I do not need to type and wait one by one.
顺便说一句,我正在使用VS 2013. 谢谢.
By the way, I am using VS 2013. Thanks.
推荐答案
您可以使用;
分隔更新命令,如下所示:
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.
这篇关于在Visual Studio中的程序包管理器控制台上更新多个程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!