MSBuild has support for creating your own tasks, much like
NAnt. To create your own task, all you have to do is to implement the
ITask interface or derive your class from
Task. Before you start to create your own tasks, make sure that you check out
MSBuild Community Tasks Project. The list of tasks is growing, but a couple of examples is FXCop, NDoc, NUnit, Zip, various SourceSafe tasks and many more.