Solved

Find Visual Studio Tools

Posted on 2016-07-19
2
77 Views
Last Modified: 2016-07-26
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.
0
Comment
Question by:deatc
2 Comments
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 41720102
Is there a reason you don't want to use Visual Studio 2015 Community edition?
0
 
LVL 32

Accepted Solution

by:
sarabande earned 500 total points
ID: 41720979
below

"\Program Files (x86)\Microsoft Visual Studio xx,x"\vc\bin

you'll find the batch file vcvars32.bat which will define the environment for compile and build at the command line.

generally, it is recommendable to add the above path to the PATH Environment variable
(via System Settings - System - Advanced - Environment variables - Path). the next time you open a command window, you can call vcvars32.bat without Folder path.

note, for to build vs projects at the command line without gui you could/should use devenv (what is visual Studio itself). type 'devenv /?' at the command line to see the possible options.

Sara
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with‚Ķ
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now