mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-10 00:48:23 -06:00
build: force the latest VCToolsVersion; see DD-1541167 for more (#17156)
Stolen from PowerToys. BODGY
This commit is contained in:
parent
5b8eadb2ea
commit
5d2d3856a7
@ -142,6 +142,10 @@ jobs:
|
||||
|
||||
- template: .\steps-restore-nuget.yml
|
||||
|
||||
- pwsh: |-
|
||||
.\build\scripts\Set-LatestVCToolsVersion.ps1
|
||||
displayName: Work around DD-1541167 (VCToolsVersion)
|
||||
|
||||
- ${{ parameters.beforeBuildSteps }}
|
||||
|
||||
- task: VSBuild@1
|
||||
|
||||
8
build/scripts/Set-LatestVCToolsVersion.ps1
Normal file
8
build/scripts/Set-LatestVCToolsVersion.ps1
Normal file
@ -0,0 +1,8 @@
|
||||
$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" })
|
||||
$LatestVCToolsVersion = $LatestVCPackage.version;
|
||||
|
||||
Write-Output "Latest VCToolsVersion: $LatestVCToolsVersion"
|
||||
Write-Output "Updating VCToolsVersion environment variable for job"
|
||||
Write-Output "##vso[task.setvariable variable=VCToolsVersion]$LatestVCToolsVersion"
|
||||
@ -61,6 +61,7 @@ void SystemConfigurationProvider::GetSettingsFromLink(
|
||||
// Hence, we make it seem like the console is in fact configured to use a
|
||||
// TrueType font by the user.
|
||||
|
||||
#pragma warning(suppress : 26485) // This isn't even really _supposed to be_ an array-to-pointer decay: it's passed as a string view.
|
||||
pLinkSettings->SetFaceName(DEFAULT_TT_FONT_FACENAME);
|
||||
pLinkSettings->SetFontFamily(TMPF_TRUETYPE);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user