Solved

Find Visual Studio Tools

Posted on 2016-07-19
2
144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 63

Expert Comment

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

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

728 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