Skip to content

Commit 56b67fd

Browse files
mabrarovedsiper
authored andcommitted
dockerfiles: windows: fixed VS Build Tools installation
Signed-off-by: Marat Abrarov <abrarov@gmail.com>
1 parent f5df0a9 commit 56b67fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dockerfiles/Dockerfile.windows

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ RUN $msvs_build_tools_dist_name=\"vs_buildtools.exe\"; `
5252
'--add Microsoft.VisualStudio.Component.VC.CoreBuildTools', `
5353
'--add Microsoft.VisualStudio.Component.VC.MSVC.143', `
5454
'--add Microsoft.VisualStudio.Component.Windows10SDK.19041' `
55-
-NoNewWindow -Wait; `
56-
if ($p.ExitCode -ne 0 -and $p.ExitCode -ne 3010) { `
57-
throw \"Visual Studio Build Tools installer failed with exit code $($p.ExitCode)\" `
55+
-NoNewWindow -Wait -PassThru; `
56+
if (${p}.ExitCode -ne 0 -and ${p}.ExitCode -ne 3010) { `
57+
throw \"Visual Studio Build Tools installer failed with exit code $(${p}.ExitCode)\" `
5858
}; `
5959
if (-not (Test-Path \"${env:MSVS_HOME}\VC\Auxiliary\Build\vcvars64.bat\")) { `
6060
throw \"Visual Studio Build Tools installation is incomplete: ${env:MSVS_HOME}\VC\Auxiliary\Build\vcvars64.bat not found\" `

0 commit comments

Comments
 (0)