Post on 11-Jul-2015
Msbuild PropertiesAnney
Agenda
Static properties
Items
Item Metadata
2013/11/13
2
Static properties
2013/11/13
3
PropertityGroup
2013/11/13
4
Get value syntax
$(propertyName)
Ex: <message text="$(MyProp)" />
2013/11/13
5
Items
2013/11/13
6
ItemGroup
use three wildcard elements with MSBuild: ?, *, and **.
Get value syntax
@(ItemGrop/PropertyName)
Ex: @(TestFiles)
2013/11/13
7
Item Metadata
2013/11/13
8
Item Metadata
Another difference between properties and items is that items can have
metadata associated with them.
2013/11/13
9
Well-known metadata
2013/11/13
10
Well-known metadata
2013/11/13
11
Well-known metadata
2013/11/13
12
RecursiveDir
2013/11/13
13
RecursiveDir(2)
@(ItemType->'%(MetadataName)')
2013/11/13
14
References
http://msdn.microsoft.com/en-us/library/ms164313.aspx
2013/11/13
15
~ THE END ~
2013/11/13
16