Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 805 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 805 Bytes

vscmd

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 -toolset

Calling init without args is the same as init -x 64 without -toolset.

Platform 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>