views:

617

answers:

6

Can I compile visual studio solutions (.sln) without installing visual studio. Can I install something like a VS SDK to do this?

The solution is a VC++ one.

A: 

You might try SharpDevelop and see if it can compile your project. It is an open source "Visual Studio lite"

Daniel Elliott
As far as I know, #D does not support C++.
Pavel Minaev
+8  A: 

I think the SDK still comes with MSBuild and a barebones compiler. You might also want to look at "VS Express", depending on your reasons not to install Visual Studio.

MSalters
I don't remember the details but there are command line utilities for this, I remember using them to automate the build for all the solutions from different developers.
Abel Morelos
Yes, MSBuild will do the trick (and will call VCBuild as needed for C++ projects in a solution).
Pavel Minaev
+2  A: 

You should be able to use vcbuild.exe to do it. I believe it is included with the Windows SDK.

Certain C++ libraries such as MFC and ATL only ship as part of visual studio so you will need visual studio on the machine to build if you make use of any of these.

pjbelf
+2  A: 

You can try call the MSBuild.exe which become wiht the .NET Framework 3.5 and probability with old versions too. I actually use this for my NAnt builds.

use something like:

"dotnet.dir" /msbuild.exe ./solutionX.sln" /v:q /nologo /p:Configuration=Release
Luís Custódio
A: 

You can try to build the C++ files with Cygwin with the command: gcc "filename.cpp"

Mohit Deshpande
A: 

Luís Custódio is right.
Visual Studio is launching msbuild under the hoods...

Tip
Change the setting for the verbosity of the build output to see some details in Tools | Options | Projects and Solutions | Build and Run

alt text

Peter Gfader