mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
5 lines
543 B
PowerShell
5 lines
543 B
PowerShell
|
|
$LatestVCToolsVersion = (([xml](& 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -include packages -format xml)).instances.instance.packages.package | ? { $_.id -eq "Microsoft.VisualCpp.Redist.14.Latest" -and $_.chip -eq "x64" }).version;
|
||
|
|
|
||
|
|
Write-Output "Latest VCToolsVersion: $LatestVCToolsVersion"
|
||
|
|
Write-Output "Updating VCToolsVersion environment variable for job"
|
||
|
|
Write-Output "##vso[task.setvariable variable=VCToolsVersion]$LatestVCToolsVersion"
|