Recently a chapter from my book Deploying .NET Applications: Learning MSBuild and ClickOnce has been posted. You can read the sample chapter MSBuild By Example. Here is the TOC for that chapter.
MSBuild: By Example
Introducing Well-Known Metadata
Formatting Your Output
Editing MSBuild Files with IntelliSense
Integrating MSBuild into Visual Studio
Introducing Custom Metadata
Understanding the Difference Between @ and %
Using Environment Variables in Your Project
Reusing MSBuild Project Elements
Dealing with MSBuild Errors
Summary
Thanks to the guys at Apress and C# Online for making this chapter available online for everyone to have a look at!
Sayed Ibrahim Hashimi
I've created a project on CodePlex to hold all of the MSBuild tasks/loggers and what not from my book and my MSDN article Inside MSBuild. The project home page is at Sedodream MSBuild CodePlex project. The idea is that I'll keep all of the MSBuild related material that I discuss here there as well. If you have content that you'd like to post there thats great too.
Here is the current list of what is available there:
Tasks Included
Name |
Description |
AddMetadata |
Allows you to add metadata to an item |
FindUnder |
Finds and returns all directories (empty or not) under a specified path |
GetDate |
Returns a string representation of the date in a specified format |
GetRegKey |
Returns the value of a registry key |
Move |
Task to move a file (or set of files) |
NUnitTask |
Task to run NUnit test cases as a part of the build process |
TempFile |
Returns the path to a new temporary file |
Loggers Included
Name |
Description |
EmailLogger |
An MSBuild logger capable of emailing the resulting log |
SimpleFileLogger |
A simple MSBuild file based logger |
XmlLogger |
An MSBuild logger which creates an Xml file |
Sayed Ibrahim Hashimi