This file is used for creation of docker image for vs2015 c++/C# build. In addition to this file, the docker creation will require vs2015 docker public assemblies directory and win64 directory
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies
C++ compilation:
- The compilation only works in Release mode.
- It also requires Windows SDK10 instead of Windows SDK 8.1
- The C/C++ "DEbug Information Format" will have to set to "None"
- If you switch to SDK10, you will find that you will be unable to compile as rc.exe is not found. you will need to add the following path to your environmental variables "C:\Program Files(x86)\Windows Kits\8.1\bin\x64"
C# compilation
- For those projects that need unittest framework, you will need to add "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PublicAssemblies" to your reference path. It will not affect your current native compilation.
- To generate deterministic build, <Deterministic>true</deterministic> needs to be added into csproj under "<propertygroup></propertygroup>"
To generate deterministic build for C++ (https://nikhilism.com/post/2020/windows-deterministic-builds/)
The following needs to be added Under C/C++ => Command Line => Additonal Options, include the following: /D__DATE__=CONSTANT /D__TIME__=CONSTANT Under linker => Command Line => Additonal Options, include the following: /Brepro
Download the follow application to patch the final exe https://github.com/jasonwhite/ducible/releases/download/v1.2.2/ducible-windows-x64-Release.zip
Eg. ducible test.exe
Find the file hash: certutil -hashfile test.exe sha512