Find Visual Studio Tools
Posted on 2016-07-19
Hi. We are interested in writing using batch files to compile Visual Studio solutions using command-line tools, such as NMake, MSBuild, and CL (the C++ compiler). Do you have recommendations as to how to find the paths for these tools? It appears that Visual Studio defines environment variables, such as VS140COMNTOOLS and VSSDK140Install, and we can base the tool paths simply relative to these environment variables (e.g., "%VS140COMNTOOLS%\..\..\VC\bin\nmake.exe"). But is there a better way, such as maybe using Windows Registry values? Thank you.