How to invoke the same msbuild target twice with different parameters from within msbuild project file itself

前端 未结 3 1668
时光取名叫无心
时光取名叫无心 2020-12-28 08:04

I have the following piece of msbuild code:

  
    C:\\DirA\\
    C:\\DirB\\
           


        
3条回答
  •  难免孤独
    2020-12-28 08:54

    You should be able to generate an ItemGroup containing the Dirs and then % on that.

    
        
    
    
        
    
    

    Or you can do 2 explicit calls:

    
        
        
    
    
    
        
    
    

    I haven't tested either syntax, but am relatively more confident of the second.

    (The answer, if there is one, is in my Sayed Hashimi book on my desk - you'll have to wait until the first of:

    1. Get the book
    2. I get bored
    3. Sayed finds this post and comes up with a brilliant tested answer)

提交回复
热议问题