Validating the quality of the code and the design of the application is as important as creating the build.
TFS 2010 and onwards, provide 2 ways to integrate 3rd party tools with build process for validating the build quality:
–>Custom build event
For first option, since the TFS build is now WWF based, build template is modified to configure parameters. These parameters work as input for validating the metrics. 3rd party tool use these parameters and generate a report that is again consumed by build process. Based on the report the final build may be passes or failed.
In custom build event method, Post Build Event of project is modified to call the 3rd party tool. If the build pass the metrics test of 3rd party tool, the final build dll are copied to a particular location, signifying the build dll has passed the metric test.