Requires Build Tools for Visual Studio.
Makes VS Tools Command Prompt features available inside batch scripts:
init {-x 64 | -x 86} {-toolset}Examples:
call "vscmd\init" -x 64
call "vscmd\init" -x 64 -toolsetCalling init without args is the same as init -x 64 without -toolset.
Using the -toolset arg PLATFORM_TOOLSET env var.
MS Visual C++ projects have this XML property:
<PlatformToolset>v142</PlatformToolset>With PLATFORM_TOOLSET you can do something like:
<PlatformToolset Condition="'$(PLATFORM_TOOLSET)' == ''">
v142
</PlatformToolset>
<PlatformToolset Condition="'$(PLATFORM_TOOLSET)' != ''">
$(PLATFORM_TOOLSET)
</PlatformToolset>