Chapter 7. External Tools

When you are using MSBuild, sometimes there is no specific task that provides the functionality that you need. At those times, you will have to use one of the many existing tools that can and should be used to assist in builds and deployments. Some of the most commonly used tools include FxCop, StyleCop, NUnit, and so on. In this chapter, I will describe how external tools can be effectively consumed by MSBuild. We’ll examine a few commonly used tools and discuss how to integrate them into your build process. We’ll first describe how these can simply be invoked in build scripts and then describe a way to create reusable targets files for tools. Also, we will discuss some guidelines for reusable build scripts.

Exec Task ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.