Files
runner-images-sangeeth/images/win/post-generation/VSConfiguration.ps1
ilia-shipitsin 84a71166b8 [windows] warmup VisualStudio for vdproj (#7649)
it takes up to several minutes to run devenv for the first time on
vdproj.
2023-06-08 12:48:45 +02:00

15 lines
616 B
PowerShell

$vsInstallRoot = (Get-VisualStudioInstance).InstallationPath
$devEnvPath = "$vsInstallRoot\Common7\IDE\devenv.exe"
# Initialize Visual Studio Experimental Instance
# The Out-Null cmdlet is required to ensure PowerShell waits until the '/ResetSettings' command fully completes.
& "$devEnvPath" /RootSuffix Exp /ResetSettings General.vssettings /Command File.Exit | Out-Null
cmd.exe /c "`"$devEnvPath`" /updateconfiguration"
#
# https://github.com/actions/runner-images/issues/5301
#
$warmup_vdproj = $(Join-Path $PSScriptRoot 'warmup.vdproj')
& "$devEnvPath" $warmup_vdproj /build Release | Out-Null