I can't find a way to upgrade all NuGet packages at one time like you can in Visual Studio 2013.
I only see how to do it one by one.
Anyone know how do upgrade all at one time?
答案 0 :(得分:40)
Open the Package Manager Console and use the Update-Package
cmd-let to update all packages.
答案 1 :(得分:3)
在VS2017中,您可以执行以下操作:
答案 2 :(得分:2)
您可以编写自定义脚本来更新包,如下所示,并在包管理器控制台中执行它
$list = Get-package -project {Add project name here}
for($i=0; $i -lt $list.Length;$i ++ ) { Update-Package -project {Add project name here} $list[$i].Id }