Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano committed Apr 27, 2024
1 parent 8f4c74e commit 3db9d26
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3db9d26

Please sign in to comment.