4
votes

I need to be able to compile a visual studio 2005 c++ project from the command line. I have found this post in the SOF archives but it does not seem to help me solve my problem. I am not able to find neither msbuild or vcexpress. Can someone point me to where they must be or is there a different command for visual studio 2005?

What I need is to create a batch file that does the compiling.

2
Assuming you want to build a solution the command would be devenv /Build YourSolution.sln as noted in the second answer in your link.Retired Ninja

2 Answers

2
votes

Click Start, point to All Programs, point to Microsoft Visual Studio, point to Visual Studio Tools, and then click Visual Studio Command Prompt.

To open the Windows SDK Command Prompt window (Windows SDK version 6.1 or later): Click Start, point to All Programs, point to Microsoft Windows SDK , and then click SDK Command Prompt or CMD Shell.

And read How to: Compile a Native C++ Program from the Command Line in Visual Studio

1
votes

You're looking for cl.exe.
But, ehm, batch file? Don't you mean makefile?