MSBuild.exe Command Line Usage

In this section, we’ll discuss the most important options when invoking msbuild.exe. When you invoke the msbuild.exe executable, you can pass many parameters to customize the process. We’ll first take a look at the options that are available with .NET 2.0, and then we’ll discuss what differences exist for .NET 3.5. Table 1-4 summarizes the parameters you can pass to msbuild.exe. Many commands include a short version that can be used; these versions are listed in the table within parentheses.

Table 1-4. MSBuild.exe Parameters

Switch

Description

/help (/?)

Displays the usage information for msbuild.exe.

/nologo

Suppresses the copyright and startup banner.

/version (/ver)

Displays version information.

@file

Used to pick up response ...

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.