Modify MSBuild ItemGroup Metadata

前端 未结 6 469
渐次进展
渐次进展 2020-12-09 08:46

Is it possible to modify a ItemGroup\'s metadata after it is declared.

For Example:

  
    

        
6条回答
  •  Happy的楠姐
    2020-12-09 09:21

    In response to Nomad, it appears that a target gets a copy of the current value of properties and items when the target is called. In your example you can fix the problem by calling the DefaultTarget after the PreProcess target has completed. One way to do this would be to specify that the DefaultTarget depends on the PreProcess target:

    ...

提交回复
热议问题