|
Switch
|
Description
|
| /help | Displays usage information. /? or /h are also acceptable. Msbuild.exe /? |
| /nologo | Hide the startup banner and copyright message. |
| /version | Display version information only. /ver is also acceptable. |
| @file | Insert command line settings from a text file. Specify each response file separately. For more information, see MSBuild Response Files. |
| /noautoresponse | Do not auto-include the MSBuild.rsp file. /noautorsp is also acceptable. |
| /target:targets | Build these targets in this project. Use a semicolon or a comma to separate multiple targets, or specify each target separately. /t is also acceptable. For example: /target:Resources;Compile |
| /property:name=value | Set or override these project-level properties, where name is the property name and value is the property value. Use a semicolon or a comma to separate multiple properties, or specify each property separately. /p is also acceptable. For example: /property:WarningLevel=2;OutputDir=bin\Debug |
| /logger:logger | Specifies the logger to use to log events from MSBuild. To specify multiple loggers, specify each logger separately. The logger syntax is: [ LoggerClass ,] LoggerAssembly [; LoggerParameters ] The LoggerClass syntax is: [ PartialOrFullNamespace .] LoggerClassName Note |
|---|
| You do not need to specify the logger class if there is exactly one logger in the assembly. |
The LoggerAssembly syntax is: { AssemblyName [, StrongName ] | AssemblyFile } Logger parameters are optional and are passed to the logger exactly as you type them. For example: /logger:XMLLogger,C:\Loggers\MyLogger.dll;OutputAsHTML |
| /consoleloggerparameters:parameters | Specifies the parameters to pass to the console logger. /clp is also acceptable. The available parameters are: -
PerformanceSummary: Displays the amount of time spent in tasks, targets, and projects. -
NoSummary: Hides the error and warning summary displayed at the end of a build. -
NoItemAndPropertyList: Hides the list of items and properties displayed at the beginning of each project build in diagnostic verbosity. |
| /verbosity:level | Display this amount of information in the build log. Individual loggers choose what events to show at a particular verbosity level. A logger may also choose to ignore the verbosity setting. The available verbosity levels are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. /v is also acceptable. For example: /verbosity:quiet |
| /noconsolelogger | Disable the default console logger and do not log events to the console. /noconlog is also acceptable. |
| /validate:schema | Validates the project file, and, if successful, builds the project. If schema is not specified, validates the project against the default schema. If schema is specified, validates the project against the specified schema. |