SlideShare une entreprise Scribd logo
1  sur  12
Proof of Concept -
MSBuild /property:<n>=<v>
     Presented by Joncash
          5/4/2012



                            1
MSBuild /property:<n>=<v>
• /property:<n>=<v>
• Set or override these project-level properties.
• <n> is the property name
• <v> is the property value
• Use a semicolon or a comma to separate multiple
  properties, or specify each property separately.
• Example :
• /property:MyName=John;MyAge=20

                                                 2
PROOF OF CONCEPT
PROJECT-LEVEL

                   3
Test.build                     Case 1
<Property Group>
     <MyName>Mary</MyName>
</Property Group>
<Target Name = “Test”>
  <Message Text=“$(MyName)” />
</Target>
Msbuild Test.build /t:Test
Mary

Msbuild Test.build /t:Test /p:MyName=john
john


                                            4
Test.build                     Case 2
<Property Group>
    <MyName>Mary</MyName>
</Property Group>
<Target Name = “Test”>
   <Message Text=“Before: $(MyName)” />
   <Property Group>
        <MyName>Bill</MyName>
   </Property Group>
   <Message Text=“After: $(MyName)” />
</Target>

Msbuild Test.build /t:Test /p:MyName=john
Before:john
After:Bill


                                            5
Property.build
<Property Group>
  <MyName>Bill</MyName>
  <MyAge>20</MyAge>
</Property Group>
…..




                             6
Test.build                     Case 3
<Import project=“Property.build” />
<Property Group>
    <MyName>Mary</MyName>
</Property Group>
<Target Name = “Test”>
  <Message Text=“$(MyName)” />
</Target>

Msbuild Test.build /t:Test
Mary

Msbuild Test.build /t:Test /p:MyName=john
john
                                            7
Test.build                     Case 4
<Property Group>
    <MyName>Mary</MyName>
</Property Group>
<Target Name = “Test”>
  <Message Text=“$(MyName)” />
</Target>
<Import project=“Property.build” />

Msbuild Test.build /t:Test
Bill

Msbuild Test.build /t:Test /p:MyName=john
john
                                            8
Test.build                           Case 5
<Property Group>
     <MyName>Mary</MyName>
</Property Group>
<Target Name = “Test”>
    <Message Text=“$(MyName)” />
    <Property Group>
        <MyName>Bill</MyName>
    </Property Group>
    <CallTarget Name=“Action” />
</Target>
<Target Name=“Action”>
    <Message Text=“Action:$(MyName)” />
</Target>




Msbuild Test.build /t:Test /p:MyName=john
john
Action:john


                                              9
Test.build                           Case 6
<Property Group>
     <MyName>Mary</MyName>
</Property Group>
<Target Name = “Test”>
    <Message Text=“$(MyName)” />
    <Property Group>
        <MyName>Bill</MyName>
    </Property Group>
    <CallTarget Name=“Action” />
</Target>
<Target Name=“Action”>
    <Message Text=“Action:$(MyName)” />
</Target>
<Import project=“Property.build” />



Msbuild Test.build /t:Test /p:MyName=john
john
Action:john


                                              10
Conclusion
• MSBuild /property:<n>=<v>
  – Set or override these project-level properties.
• project-level
  – A whole “.build”, including the import project.




                                                      11
THANK FOR YOUR LISTENING


                           12

Contenu connexe

Similaire à Proof of conecpt ms build property command 20120504 joncash-02

Google App Engine with Gaelyk
Google App Engine with GaelykGoogle App Engine with Gaelyk
Google App Engine with GaelykChoong Ping Teo
 
Meet Magento DE 2016 - Kristof Ringleff - Growing up with Magento
Meet Magento DE 2016 - Kristof Ringleff - Growing up with MagentoMeet Magento DE 2016 - Kristof Ringleff - Growing up with Magento
Meet Magento DE 2016 - Kristof Ringleff - Growing up with MagentoKristof Ringleff
 
Automation Frame works Instruction Sheet
Automation Frame works Instruction SheetAutomation Frame works Instruction Sheet
Automation Frame works Instruction SheetvodQA
 
Building and managing java projects with maven part-III
Building and managing java projects with maven part-IIIBuilding and managing java projects with maven part-III
Building and managing java projects with maven part-IIIprinceirfancivil
 
AngularJS: What's the Big Deal?
AngularJS: What's the Big Deal?AngularJS: What's the Big Deal?
AngularJS: What's the Big Deal?Jim Duffy
 
A (very) opinionated guide to MSBuild and Project Files
A (very) opinionated guide to MSBuild and Project FilesA (very) opinionated guide to MSBuild and Project Files
A (very) opinionated guide to MSBuild and Project FilesDavid Wengier
 

Similaire à Proof of conecpt ms build property command 20120504 joncash-02 (10)

Google App Engine with Gaelyk
Google App Engine with GaelykGoogle App Engine with Gaelyk
Google App Engine with Gaelyk
 
Meet Magento DE 2016 - Kristof Ringleff - Growing up with Magento
Meet Magento DE 2016 - Kristof Ringleff - Growing up with MagentoMeet Magento DE 2016 - Kristof Ringleff - Growing up with Magento
Meet Magento DE 2016 - Kristof Ringleff - Growing up with Magento
 
Automation Frame works Instruction Sheet
Automation Frame works Instruction SheetAutomation Frame works Instruction Sheet
Automation Frame works Instruction Sheet
 
Maven part 3
Maven part 3Maven part 3
Maven part 3
 
Building and managing java projects with maven part-III
Building and managing java projects with maven part-IIIBuilding and managing java projects with maven part-III
Building and managing java projects with maven part-III
 
Maven iii
Maven iiiMaven iii
Maven iii
 
Maven iii
Maven iiiMaven iii
Maven iii
 
Growing up with Magento
Growing up with MagentoGrowing up with Magento
Growing up with Magento
 
AngularJS: What's the Big Deal?
AngularJS: What's the Big Deal?AngularJS: What's the Big Deal?
AngularJS: What's the Big Deal?
 
A (very) opinionated guide to MSBuild and Project Files
A (very) opinionated guide to MSBuild and Project FilesA (very) opinionated guide to MSBuild and Project Files
A (very) opinionated guide to MSBuild and Project Files
 

Plus de LearningTech

Plus de LearningTech (20)

vim
vimvim
vim
 
PostCss
PostCssPostCss
PostCss
 
ReactJs
ReactJsReactJs
ReactJs
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
flexbox report
flexbox reportflexbox report
flexbox report
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection &amp; activator
Reflection &amp; activatorReflection &amp; activator
Reflection &amp; activator
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Expression tree
Expression treeExpression tree
Expression tree
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 

Dernier

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 

Dernier (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 

Proof of conecpt ms build property command 20120504 joncash-02

  • 1. Proof of Concept - MSBuild /property:<n>=<v> Presented by Joncash 5/4/2012 1
  • 2. MSBuild /property:<n>=<v> • /property:<n>=<v> • Set or override these project-level properties. • <n> is the property name • <v> is the property value • Use a semicolon or a comma to separate multiple properties, or specify each property separately. • Example : • /property:MyName=John;MyAge=20 2
  • 4. Test.build Case 1 <Property Group> <MyName>Mary</MyName> </Property Group> <Target Name = “Test”> <Message Text=“$(MyName)” /> </Target> Msbuild Test.build /t:Test Mary Msbuild Test.build /t:Test /p:MyName=john john 4
  • 5. Test.build Case 2 <Property Group> <MyName>Mary</MyName> </Property Group> <Target Name = “Test”> <Message Text=“Before: $(MyName)” /> <Property Group> <MyName>Bill</MyName> </Property Group> <Message Text=“After: $(MyName)” /> </Target> Msbuild Test.build /t:Test /p:MyName=john Before:john After:Bill 5
  • 6. Property.build <Property Group> <MyName>Bill</MyName> <MyAge>20</MyAge> </Property Group> ….. 6
  • 7. Test.build Case 3 <Import project=“Property.build” /> <Property Group> <MyName>Mary</MyName> </Property Group> <Target Name = “Test”> <Message Text=“$(MyName)” /> </Target> Msbuild Test.build /t:Test Mary Msbuild Test.build /t:Test /p:MyName=john john 7
  • 8. Test.build Case 4 <Property Group> <MyName>Mary</MyName> </Property Group> <Target Name = “Test”> <Message Text=“$(MyName)” /> </Target> <Import project=“Property.build” /> Msbuild Test.build /t:Test Bill Msbuild Test.build /t:Test /p:MyName=john john 8
  • 9. Test.build Case 5 <Property Group> <MyName>Mary</MyName> </Property Group> <Target Name = “Test”> <Message Text=“$(MyName)” /> <Property Group> <MyName>Bill</MyName> </Property Group> <CallTarget Name=“Action” /> </Target> <Target Name=“Action”> <Message Text=“Action:$(MyName)” /> </Target> Msbuild Test.build /t:Test /p:MyName=john john Action:john 9
  • 10. Test.build Case 6 <Property Group> <MyName>Mary</MyName> </Property Group> <Target Name = “Test”> <Message Text=“$(MyName)” /> <Property Group> <MyName>Bill</MyName> </Property Group> <CallTarget Name=“Action” /> </Target> <Target Name=“Action”> <Message Text=“Action:$(MyName)” /> </Target> <Import project=“Property.build” /> Msbuild Test.build /t:Test /p:MyName=john john Action:john 10
  • 11. Conclusion • MSBuild /property:<n>=<v> – Set or override these project-level properties. • project-level – A whole “.build”, including the import project. 11
  • 12. THANK FOR YOUR LISTENING 12