Msbuild Properties
Anney
2

Agenda
 Static properties
 Items
 Item Metadata

2013/11/13
3

Static properties

2013/11/13
4

PropertityGroup

2013/11/13
5

Get value syntax
 $(propertyName)
 Ex: <message text="$(MyProp)" />

2013/11/13
6

Items

2013/11/13
7

ItemGroup
 use three wildcard elements with MSBuild: ?, *, and **.
 Get value syntax
 @(ItemGrop/PropertyName)
 Ex:...
8

Item Metadata

2013/11/13
9

Item Metadata
 Another difference between properties and items is that items can have
metadata associated with them.

...
10

Well-known metadata

2013/11/13
11

Well-known metadata

2013/11/13
12

Well-known metadata

2013/11/13
13

RecursiveDir

2013/11/13
14

RecursiveDir(2)
 @(ItemType->'%(MetadataName)')

2013/11/13
15

References
 http://msdn.microsoft.com/en-us/library/ms164313.aspx

2013/11/13
16

~ THE END ~

2013/11/13
Upcoming SlideShare
Loading in …5
×

20131191 msbuild properties

372 views

Published on

Published in: Technology, Education, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
372
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

20131191 msbuild properties

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

×