1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3 <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
6 <!-- To Serialize we use msbuild's batching functionality '%' to force it to batch all similar projects with the same identity
7 however since the project names are unique it will essentially force each to run in its own batch -->
8 <MSBuild Targets="Build" Projects="@(Project)" Condition="'$(SerializeProjects)'=='true'" Properties="Dummy=%(Identity)"/>
9 <MSBuild Targets="Build" Projects="@(Project)" Condition="'$(SerializeProjects)'!='true'" BuildInParallel="true" />
13 <!-- To Serialize we use msbuild's batching functionality '%' to force it to batch all similar projects with the same identity
14 however since the project names are unique it will essentially force each to run in its own batch -->
15 <MSBuild Targets="Clean" Projects="@(Project)" Condition="'$(SerializeProjects)'=='true'" Properties="Dummy=%(Identity)"/>
16 <MSBuild Targets="Clean" Projects="@(Project)" Condition="'$(SerializeProjects)'!='true'" BuildInParallel="true" />
19 <Target Name="Rebuild" DependsOnTargets="Clean;Build" />