From 3db9d2610d2762289659e893ab2091b6ebfa3d5e Mon Sep 17 00:00:00 2001 From: Jean Felder Date: Sat, 27 Apr 2024 14:38:10 +0200 Subject: [PATCH] 2 --- Dockerfile.windows | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 \