mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-30 05:57:42 +00:00
[CI] Fix VCToolsVersion script for PowerShell 7
This commit is contained in:
parent
450bfcc1d4
commit
3c3f3ee1c3
@ -1,7 +1,4 @@
|
||||
$extraVersionTarget = "";
|
||||
if($env:VCWhereExtraVersionTarget) {
|
||||
$extraVersionTarget = "`"$env:VCWhereExtraVersionTarget`"";
|
||||
}
|
||||
$extraVersionTarget = $env:VCWhereExtraVersionTarget;
|
||||
$VSInstances = ([xml](& 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' -latest $extraVersionTarget -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -include packages -format xml))
|
||||
$VSPackages = $VSInstances.instances.instance.packages.package
|
||||
$LatestVCPackage = ($VSPackages | ? { $_.id -eq "Microsoft.VisualCpp.Tools.Core" })
|
||||
|
Loading…
x
Reference in New Issue
Block a user