title: MSBuild Task Batching for multiple tasks
body: <p>I have an MSBuild task with 2 steps, which for simplicity I'm replacing with <code>&lt;Message&gt;</code>. There are 2 modes which must be passed to the steps as parameters. These 2 steps must be run as a unit for each mode.  I tried to use task batching as shown below.</p>
  
  <pre><code>&lt;ItemGroup&gt;
    &lt;Mode Include="Mode1" /&gt;
    &lt;Mode Include="Mode2" /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;Target Name="Build"&gt;
    &lt;Message Text="Step1: %(Mode.Identity)" /&gt;
    &lt;Message Text="Step2: %(Mode.Identity)" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>The problem is that each step is treated separately, generating the following output:</p>
  
  <pre><code>Step1: Mode1
  Step1: Mode2
  Step2: Mode1
  Step2: Mode2
  </code></pre>
  
  <p>Is there any way to achieve this?</p>
  
  <pre><code>Step1: Mode1
  Step2: Mode1
  Step1: Mode2
  Step2: Mode2
  </code></pre>