Skip to content

Instantly share code, notes, and snippets.

@chrisabird
Created July 19, 2011 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisabird/1091870 to your computer and use it in GitHub Desktop.
Save chrisabird/1091870 to your computer and use it in GitHub Desktop.
MSBuildBuildInParalell
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Target Name="Compile">
<MSBuild Projects="Dev2.proj" BuildInParallel="false" Targets="Clean" />
<MSBuild Projects="Dev2.proj" BuildInParallel="false" Targets="Compile" />
<MSBuild Projects="Dev2.proj" BuildInParallel="false" Targets="SetupConnectionStrings" />
<MSBuild Projects="Dev2.proj" BuildInParallel="false" Targets="SetupApplicationSettings" />
</Target>
<Target Name="Build" DependsOnTargets="Compile">
<MSBuild Projects="Dev3.proj" BuildInParallel="true" Targets="DBUpdate;TestIntegration;TestFunctionals" />
<MSBuild Projects="Dev4.proj" BuildInParallel="true" Targets="TestUnits" />
<MSBuild Projects="Dev.proj" BuildInParallel="true" Targets="TestJsLint" />
<MSBuild Projects="Dev1.proj" BuildInParallel="true" Targets="TestJS" />
</Target>
</Project>
@zkhan
Copy link

zkhan commented Jul 19, 2011

I only know of parallel builds working in the context of sln and csproj files. I take it these .proj files don't ultimately end up compiling cs proj files? I can imagine the BuildInParallel switch only applying to the build in (the built in) compile targets steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment