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
Solved

Find Visual Studio Tools

Posted on 2016-07-19
2
111 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 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 33

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

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.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

828 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