aspnetcore-tooling/eng/SetupVSHive.ps1

19 строки
589 B
PowerShell

. $PSScriptRoot\common\tools.ps1
$vsInfo = LocateVisualStudio
if ($null -eq $vsInfo) {
throw "Unable to locate required Visual Studio installation"
}
$vsDir = $vsInfo.installationPath.TrimEnd("\")
$vsRegEdit = Join-Path (Join-Path (Join-Path $vsDir 'Common7') 'IDE') 'VSRegEdit.exe'
$hive = "RoslynDev"
&$vsRegEdit set "$vsDir" $hive HKCU "Roslyn\Internal\OnOff\Features" OOP64Bit dword 0
Write-Host "-- VS Info --"
$isolationIni = Join-Path (Join-Path (Join-Path $vsDir 'Common7') 'IDE') 'devenv.isolation.ini'
Get-Content $isolationIni | Write-Host
Write-Host "-- /VS Info --"