Double-Loop in msbuild?

前端 未结 4 997
闹比i
闹比i 2021-02-07 18:06

I\'m writing a script for msbuild which should make two batches in one step.
Example: 2 ItemGroups


 
 

        
4条回答
  •  醉酒成梦
    2021-02-07 19:01

    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.

    
        
    
    
    
    

提交回复
热议问题