I\'m writing a script for msbuild which should make two batches in one step.
Example: 2 ItemGroups
Try this to create a new ItemGroup using the identity from group 1 and assigning metadata to the new item group from the identity (or any other metadata) of group 2. Then use batching to iterate over the new group.
If you have more than two groups you can add CreateItem entries to merge the third group into _Group_Merged and then iterate over that combined group.