diff --git a/Dockerfile.windows b/Dockerfile.windows index c525d836..97bd76f7 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -4,11 +4,15 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2022 SHELL ["cmd", "/S", "/C"] # Download channel for fixed install. -ARG CHANNEL_URL=https://aka.ms/vs/16/release/channel -ADD ${CHANNEL_URL} %TEMP%\VisualStudio.chman +# ARG CHANNEL_URL=https://aka.ms/vs/16/release/channel +# ADD ${CHANNEL_URL} %TEMP%\VisualStudio.chman +RUN powershell -Command \ + Invoke-WebRequest -Uri https://aka.ms/vs/17/release/channel -OutFile $env:TEMP\VisualStudio.chman; \ + Invoke-WebRequest -Uri https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile $env:TEMP\vs_buildtools.exe; # Download and install Build Tools for Visual Studio 2019 for native desktop workload. -ADD https://aka.ms/vs/16/release/vs_buildtools.exe %TEMP%\vs_buildtools.exe +# ADD https://aka.ms/vs/16/release/vs_buildtools.exe %TEMP%\vs_buildtools.exe +RUN dir %TEMP% RUN %TEMP%\vs_buildtools.exe --quiet --wait --norestart --nocache \ --channelUri %TEMP%\VisualStudio.chman \ --installChannelUri %TEMP%\VisualStudio.chman \