└── vs-build-tools ├── 17 └── Dockerfile └── README.md /vs-build-tools/17/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM microsoft/windowsservercore 2 | 3 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 4 | 5 | RUN Install-WindowsFeature NET-Framework-45-Core 6 | RUN Invoke-WebRequest "https://aka.ms/vs/15/release/vs_BuildTools.exe" -OutFile vs_BuildTools.exe -UseBasicParsing ; \ 7 | Start-Process -FilePath 'vs_BuildTools.exe' -ArgumentList '--quiet', '--norestart', '--locale en-US' -Wait ; \ 8 | Remove-Item .\vs_BuildTools.exe ; \ 9 | Remove-Item -Force -Recurse 'C:\Program Files (x86)\Microsoft Visual Studio\Installer' 10 | RUN setx /M PATH $($Env:PATH + ';' + ${Env:ProgramFiles(x86)} + '\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin') 11 | -------------------------------------------------------------------------------- /vs-build-tools/README.md: -------------------------------------------------------------------------------- 1 | # Build Tools for Visual Studio 2017 2 | 3 | https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017-rc 4 | 5 | ## How to use 6 | 7 | docker run friism/vs-build-tools msbuild /h 8 | 9 | ## Source code 10 | 11 | https://github.com/friism/dockerfiles/tree/master/vs-build-tools 12 | --------------------------------------------------------------------------------