Skip to content

Commit caa49fe

Browse files
authored
Print VS info during the build (#14831)
1 parent 291aeae commit caa49fe

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ stages:
349349
steps:
350350
- checkout: self
351351
clean: true
352+
353+
- powershell: eng\SetupVSHive.ps1
354+
displayName: Setup VS Hive
355+
352356
- script: eng\CIBuild.cmd -compressallmetadata -configuration $(_configuration) -$(_testKind)
353357
displayName: Build / Test
354358
- task: PublishTestResults@2

eng/SetupVSHive.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
. $PSScriptRoot\common\tools.ps1
2+
3+
$vsInfo = LocateVisualStudio
4+
if ($null -eq $vsInfo) {
5+
throw "Unable to locate required Visual Studio installation"
6+
}
7+
8+
$vsDir = $vsInfo.installationPath.TrimEnd("\")
9+
10+
$vsRegEdit = Join-Path (Join-Path (Join-Path $vsDir 'Common7') 'IDE') 'VSRegEdit.exe'
11+
12+
$hive = "RoslynDev"
13+
&$vsRegEdit set "$vsDir" $hive HKCU "Roslyn\Internal\OnOff\Features" OOP64Bit dword 0
14+
15+
Write-Host "-- VS Info --"
16+
$isolationIni = Join-Path (Join-Path (Join-Path $vsDir 'Common7') 'IDE') 'devenv.isolation.ini'
17+
Get-Content $isolationIni | Write-Host
18+
Write-Host "-- /VS Info --"

0 commit comments

Comments
 (0)