问题
is there any way to update all packages except one? For instance when I created new project I need to update all packages except jQuery. It should stay at same version.
回答1:
You could write a custom script for updating the packages like the following and execute it in the package manager console
$list = Get-package -project {Add project name here}
for($i=0; $i -lt $list.Length;$i ++ ) { if($list[$i].Id -ne "jquery") { Update-Package -project {Add project name here} $list[$i].Id } }
回答2:
no there is no direct way of doing that. May be you can update all, then uninstall JQuery and install the version of jquery you want.
来源:https://stackoverflow.com/questions/31249356/update-all-packages-except-one