O'Reilly logo

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build by William Bartholomew, Sayed Ibrahim Hashimi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Task Batching

As stated previously, task batching is the process of invoking the same individual task multiple times, each time with a subset of the original input items, where the input is defined by the batches created for the task. See the following example, which is contained in the Batching02.proj file.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SourceFolder>src\</SourceFolder> </PropertyGroup> <ItemGroup> <SourceFiles Include="$(SourceFolder)one.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </SourceFiles> <SourceFiles Include="$(SourceFolder)two.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </SourceFiles> <SourceFiles Include="$(SourceFolder)three.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required