How to write your own build script by using benefit from MSBuild environment variables configuration corresponding specified platform (C++)
The following XML enables to resolve this challenge. SetBuildDefaultEnvironmentVariables
is key of this.
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="ManualBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PlatformToolset>v140</PlatformToolset> <!-- (Optional) only if want to explicitly specify platform toolset version -->
8.1