MSBuild Filtering ItemGroup of files with condition

后端 未结 2 454
春和景丽
春和景丽 2021-01-27 04:12

This feels like it\'s so simple, but I cannot get it to work.

All I\'m trying to achieve is a filtered list of the embedded resources. I\'ve tried various approaches bu

2条回答
  •  醉梦人生
    2021-01-27 04:22

    Inside a target, this can be done using the batching syntax for items and using the System.String.Copy method to be able to call instance functions on the string:

    
      
        
      
      
    
    

    Note that this syntax only works inside a target and not during static evaluation (item group directly under the node).

提交回复
热议问题