MSBuild Task

When you are building products there will be many instances where you simply want to build an existing MSBuild file. This could be an MSBuild file that you authored or one that was created by a third party tool for you. Of course you could use the Exec task to perform this, but a better option is to use the MSBuild task. This is another task that is delivered along with MSBuild itself. As the name suggests, it will invoke MSBuild on the specified file(s). Some of the advantages of using this task instead of the Exec task include increased performance, better integration, and ease of use. The properties for this task are outlined in Table 7-2.

Table 7-2. MSBuild Task Properties

Name

Description

BuildInParallel

If true, then the projects ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build 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.