Skip to content

reksar/vscmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

MS Visual Studio Tools for batch scripting

Topics

Resources

Stars

Watchers

Forks