Krishna Kumar
Krishna Kumar

Reputation: 8201

Can I compile visual studio solutions (.sln) without installing visual studio

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.

Upvotes: 29

Views: 39843

Answers (5)

Sytze
Sytze

Reputation: 49

You can separately install the MsBuild tools

Upvotes: 0

Peter Gfader
Peter Gfader

Reputation: 7741

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

Upvotes: 0

Custodio
Custodio

Reputation: 8934

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

Upvotes: 10

pjbelf
pjbelf

Reputation: 641

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.

Upvotes: 3

MSalters
MSalters

Reputation: 179819

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.

Upvotes: 12

Related Questions