title: Parallel compilation of delphi projects through MSBuild
body: <p>I have a script that compile all the projects (around 50) of my solution like following</p>
  
  <pre><code>msbuild "myProjName.dproj" /t:build /p:config="Release" /fileLogger /flp:ErrorsOnly /nologo
  </code></pre>
  
  <p>This works just fine but takes forever to compile. In order to make it faster to build i've been trying to leverage all the potential of our modern multi-core machines using the '/maxcpucount' switch explained here : <a href="http://msdn.microsoft.com/library/bb651793.aspx">http://msdn.microsoft.com/library/bb651793.aspx</a></p>
  
  <p>I get about the same compilation time on my 4-core CPU dev machine. No perf gains.</p>
  
  <p>Apparently this can only work when projects need dependencies to be built. The others "workers" would then build these dependencies projects in parallel as the main proj.
  So i tried to build a project group in delphi and adding all my projects to it and than run the msbuild command on this .groupproj but it is still as slow as it has always been.</p>
  
  <p>Did any of you achieved to build multiple projets at the same time with msbuild?
  If yes can you provide me an explanation?</p>
  
  <p>Thanks!</p>