
Introduction to MSBuild
- Microsoft supported build engine
- XML-based configuration file
- Intellisense available from Visual Studio using supplied schema
- Ships with .NET Framework 2.0, it is NOT part of Team Foundation Server
- Both Visual Studio and Team Foundation Server leverage MSBuild
- Command-line utility – MSBuild.exe
MSBuild Concepts
- Project
- Property
- Item
- Target
- Task
Projects
– The root concept in MSBuild
– Defines the build process
Example:
Build
Properties
– Name/value pairs
Items
– Set of objects (commonly files)
– Can specify meta-data to be applied to the objects
Example:
Targets
– Defines a number of sequential tasks
– Projects can have initial and/or default targets
Example:
Tasks
– Performs an operation
– Uses properties and items
– Extensible
Exmaple:
<MakeDir
Directories="$(BuildDir)" />
Some Reference Link:
http://msdn.microsoft.com/en-us/library/ms171452%28VS.90%29.aspx
http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx
http://www.codeproject.com/KB/aspnet/Automate_Builds.aspx
http://www.codeproject.com/KB/aspnet/Automate_Builds.aspx
http://en.wikipedia.org/wiki/MSBuild
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND