mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
build: change how we find the latest VC tools version (#18468)
Apparently, we were using the package containing the CRT _source code_ to determine the version of the tools. Also apparently, VS does not guarantee that that package has the same version as the tools package. We should use the version of the tools package instead. (cherry picked from commit 8e4da6e938430e11535e444032cfa2c32a6ab1a2) Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgWyLAQ Service-Version: 1.22
This commit is contained in:
parent
26f82608b3
commit
e571e4fa22
@ -1,6 +1,6 @@
|
||||
$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.CRT.Source" })
|
||||
$LatestVCPackage = ($VSInstances.instances.instance.packages.package | ? { $_.id -eq "Microsoft.VisualCpp.Tools.Core" })
|
||||
$LatestVCToolsVersion = $LatestVCPackage.version;
|
||||
|
||||
Write-Output "Latest VCToolsVersion: $LatestVCToolsVersion"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user