sarat
sarat

Reputation: 11160

Using MSBuild for managing large projects

I have a requirement for compiling large number of projects (some of them having dependency one to other). Of course I can put them under single solution file under Visual Studio and manage the compilation. But the existing solutions isn't configured in such a way. Also I feel the build scripts are better efficient to manage them.

But I could not find any proper tools to convert the Visual Studio Project files which contains all my required settings in an MSBuild Script file. Adding each and every files manually is a tedious task.

My questions are

Upvotes: 1

Views: 1352

Answers (2)

Nick Nieslanik
Nick Nieslanik

Reputation: 4458

The alternative of using MSBuild traversal projects is illustrated in the following article. You may want to give this a read:

http://msdn.microsoft.com/en-us/magazine/dd483291.aspx

Upvotes: 1

Ludwo
Ludwo

Reputation: 6193

You can give project files as is for compilation but you have to take care of correct build order and it is not simple for large number of projects and you cannot build in parallel.

The best solution for you is to use your current solution to build using MSBuild

msbuild YourSolutionFile.sln /p:Configuration="Debug";Platform="Any CPU"

If you want to build in parallel add /m:2 /p:BuildInParallel=True parameters into command line. More info

msbuild YourSolutionFile.sln /m:2 /p:Configuration="Debug";Platform="Any CPU";BuildInParallel=True;

Upvotes: 1

Related Questions