msbuild /p:platform=win32 /p:Configuration=Release /p:PlatformToolset=v140 - You can find the PlatformToolset by run: msbuild /version - Actually , I use Visual C++ 2015 MSBuildTools , the PlatformToolset is v140 , maybe your is v141 , v120 and other.