Merge pull request #15069 from stephentoub/coreclrnumbershared
[platform/upstream/coreclr.git] / dir.traversal.targets
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" />
4
5   <Target Name="Build">
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" />
10   </Target>
11
12   <Target Name="Clean">
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" />
17   </Target>
18
19   <Target Name="Rebuild" DependsOnTargets="Clean;Build" />
20 </Project>