diff --git a/windows/Dockerfile b/windows/Dockerfile index c56a7c50b71259fd4a203a01709b1e5e59f88112..a4c53bcf2b28a50207e49dfeff9e99be763758b8 100644 --- a/windows/Dockerfile +++ b/windows/Dockerfile @@ -62,3 +62,6 @@ RUN python -m pip --no-cache-dir install --no-warn-script-location \ scipy \ matplotlib \ pandas + +COPY VsDevSh.ps1 C:/VsDevSh.ps1 +SHELL ["powershell", "-NoProfile", "-ExecutionPolicy Bypass", "-Command", "$ErrorActionPreference = 'Stop';", "C:/VsDevSh.ps1;"] \ No newline at end of file diff --git a/windows/VsDevSh.ps1 b/windows/VsDevSh.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..8a59baf8a0c27fa9cdcec3097ea3323795c2c48a --- /dev/null +++ b/windows/VsDevSh.ps1 @@ -0,0 +1,8 @@ +pushd "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools" +cmd /c "VsDevCmd.bat&set" | +foreach { + if ($_ -match "=") { + $v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" + } +} +popd \ No newline at end of file