Skip to content

Commit 84a7116

Browse files
[windows] warmup VisualStudio for vdproj (#7649)
it takes up to several minutes to run devenv for the first time on vdproj.
1 parent 05818be commit 84a7116

File tree

2 files changed

+672
-1
lines changed

2 files changed

+672
-1
lines changed

images/win/post-generation/VSConfiguration.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ $devEnvPath = "$vsInstallRoot\Common7\IDE\devenv.exe"
55
# The Out-Null cmdlet is required to ensure PowerShell waits until the '/ResetSettings' command fully completes.
66
& "$devEnvPath" /RootSuffix Exp /ResetSettings General.vssettings /Command File.Exit | Out-Null
77

8-
cmd.exe /c "`"$devEnvPath`" /updateconfiguration"
8+
cmd.exe /c "`"$devEnvPath`" /updateconfiguration"
9+
10+
#
11+
# https://github.com/actions/runner-images/issues/5301
12+
#
13+
$warmup_vdproj = $(Join-Path $PSScriptRoot 'warmup.vdproj')
14+
& "$devEnvPath" $warmup_vdproj /build Release | Out-Null

0 commit comments

Comments
 (0)