Custom Tasks

Custom Tasks

Although Team Foundation Server already includes an end-to-end build lab solution, sometimes an organization needs to implement custom functionality that is not normally available as part of a build process. For example, they may want to run an external tool, or integrate some form of messaging or notification service. In order to accommodate custom build functionality, Team Foundation Server includes support for custom tasks.

MSBuild, the Team Foundation Server build engine, organizes build actions into tasks. For example, an administrator can include a file copy task as part of the build process. Custom tasks can be added to the build process by writing managed code classes. This gives the build process a great deal of flexibility as almost any sort of functionality can be coded.

Creating a custom task requires editing the MSBuild XML project file.

A custom task in an MSBuild project file