?
Solved

Find Visual Studio Tools

Posted on 2016-07-19
2
Medium Priority
?
205 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 64

Expert Comment

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

Accepted Solution

by:
sarabande earned 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.
Suggested Courses

840 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