Builds a Docker image with Visual C++ Build tools and Windows 10 SDK v10.0.26624. Also includes Wix3.1, CMake, DotNet45 & WinSdk8.1:
The [ENTRYPOINT] is powershell, but it calls vcbuildtools.bat
script to set
Visual Studio 2015 build environment variables.
Code contained in this repro is under MIT license. Howerver, the image it creates is based on Microsoft Windows and Visual Studio software, released under their own licenses.
Please review:
- https://hub.docker.com/r/microsoft/windowsservercore/
- http://landinghub.visualstudio.com/visual-cpp-build-tools/
brycem/win10build:Latest should generally match microsoft/windowsservercore:Latest
- https://hub.docker.com/r/microsoft/windowsservercore/
- Individual images are first tagged as 'MajorVersion.MinorVersion.CurrentBuild.UBR':
$WinVer = Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion';
$WinVer.CurrentMajorVersionNumber,$WinVer.CurrentMinorVersionNumber,$WinVer.CurrentBuildNumber,$WinVer.UBR|`
ForEach-Object {$BuildVer+=[String]$_+'.'};
$BuildVer=$BuildVer.TrimEnd('.');
docker build -t win10build .
docker run -v "$(pwd):C:\code" win10build msbuild yourproject.sln /p:Configuration=Release
git clone -v -recursive https://github.com/$fork/$repo -b $branch
cd $repo
docker run -v "$(pwd):C:\code" brycem/win10build msbuild yourproject.sln /p:Configuration=Release