Normally, @(Item) is translated as a concatenation of the identity metadata of the elements in the item list Item - these values are delimitated by comma ‘,’ . We can customize this by using: @(item->’…%(metaData)…’, ‘delim’ ) E.g., I often use the delimiter is %0A stands for a newline.
Archive for the ‘MSBuild’ Category
Change the default printing-output of an item @item
Posted in MSBuild on April 29, 2010 | Leave a Comment »
The difference between XmlRead vs XmlPeek ?
Posted in MSBuild on April 28, 2010 | Leave a Comment »
XmlPeek: Read inner text. Built-in support by MSBuild in dotNet Framework. XmlRead: Do not read inner text. Need MSBuild Community Task. Example:
Target Batching notes
Posted in MSBuild on April 1, 2010 | Leave a Comment »
When batching a target, we can not batch a series of calltarget since it will batch each calltarget one by one. See below sample script to see it. For those who insist on calling a target in batching mode, then is the handy tool. See below sample script. Enjoy!