Open Denis535 opened 3 years ago
This works but looks strange.
<PrintItem Reference="@(ReferencePath)" Condition="%(ReferencePath.Identity) != ''" />
That's the standard idiom.
Ideally the task accepts the list and loops over it -- that is why it looks clunky when you have to pass one at a time.
When you use
%(Item.Identity)
syntax thenMSBuild
creates new item with the sameIdentity
. So, all other metadata is lost!Is there a way to avoid losing metadata?