-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci]Proper workaround for the vc tools version check (#37130)
* Revert "[ci]Remove vc tools version workaround (#37098)" This reverts commit 2c069ce. * Adopt the same workaround as in Terminal
- Loading branch information
1 parent
fd28080
commit ab7394f
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$VSInstances = ([xml](& 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe' -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -include packages -format xml)) | ||
$VSPackages = $VSInstances.instances.instance.packages.package | ||
$LatestVCPackage = ($VSInstances.instances.instance.packages.package | ? { $_.id -eq "Microsoft.VisualCpp.Tools.Core" }) | ||
$LatestVCToolsVersion = $LatestVCPackage.version; | ||
Write-Output "Latest VCToolsVersion: $LatestVCToolsVersion" | ||
Write-Output "Updating VCToolsVersion environment variable for job" | ||
Write-Output "##vso[task.setvariable variable=VCToolsVersion]$LatestVCToolsVersion" |