title: How to combine into single attribute if metadata is same?
body: <p>I am having Msbuild XML file like this. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
    &lt;Project xmlns="schemas.microsoft.com/developer/msbuild/2003"&gt;
           &lt;ItemGroup&gt;
               &lt;Notifications Include="someone@gmail.com"/&gt;
           &lt;/ItemGroup&gt;
      &lt;ItemGroup&gt; 
           &lt;Xcopy Include="..\..\..\Release\UtilitiesAssembly.dll"&gt; 
               &lt;Destination&gt;"..\..\..\Mycomponent\depl\BOM\Folder1&lt;/Destination&gt; 
           &lt;/Xcopy&gt;
           &lt;Xcopy Include="..\..\..\Release\Core.assembly.dll"&gt;
               &lt;Destination&gt;"..\..\..\Mycomponent\depl\BOM\Folder1&lt;/Destination&gt;
           &lt;/Xcopy&gt;
           &lt;Xcopy Include="..\..\..\Release\UIAssembly.dll"&gt; 
               &lt;Destination&gt;"..\..\..\Anothercomponent\Folder1&lt;/Destination&gt; 
           &lt;/Xcopy&gt;
           &lt;Xcopy Include="..\..\..\Release\Core.assembly.dll"&gt;
               &lt;Destination&gt;"..\..\..\Anothercomponent\depl\BOM&lt;/Destination&gt;
           &lt;/Xcopy&gt;
      &lt;/Itemgroup&gt;
    &lt;/Project&gt;
  </code></pre>
  
  <p>Actually i would like to group XCopy Itemgroup like this </p>
  
  <pre><code>      &lt;Xcopy Include="..\..\..\Release\UtilitiesAssembly.dll;
                      ..\..\..\Release\\Core.assembly.dll;"&gt;
        &lt;Destination&gt;"..\..\..\Mycomponent\depl\BOM\Folder1&lt;/Destination&gt;
       &lt;/Xcopy&gt;
  
       &lt;Xcopy Include="..\..\..\Release\UIAssembly.dll;"&gt;
        &lt;Destination&gt;"..\..\..\Anothercomponent\Folder1&lt;/Destination&gt;
       &lt;/Xcopy&gt;
  
       &lt;Xcopy Include="..\..\..\Release\Core.assembly.dll"&gt;
               &lt;Destination&gt;"..\..\..\Anothercomponent\depl\BOM&lt;/Destination&gt;
       &lt;/Xcopy&gt;
  </code></pre>
  
  <p>How to achieve it using Powershell or Msbuild or by some other mechanism</p>