CommandLine Properties

MSBuild Extension Pack

CommandLine Properties MSBuild Extension Pack Help 4.0.12.0

The CommandLine type exposes the following members.

Properties

  Name Description
Public property Command
Gets or sets the command(s) to run. These can be system commands, such as attrib, or an executable, such as program.exe, runprogram.bat, or setup.msi. This parameter can contain multiple lines of commands (each command on a new-line). Alternatively, you can place multiple commands in a batch file and run it using this parameter.
Public property CustomErrorRegularExpression
Gets or sets the error regular expression. Leaving this unset will result in no output errors.
Public property CustomWarningRegularExpression
Gets or sets the warning regular expression. Leaving this unset will result in no output warnings.
Public property ExitCode
Gets the Int32 exit code provided by the executed command.
Public property IgnoreExitCode
Gets or sets a value indicating whether to ignore the command exit code. If true, the task ignores the exit code provided by the executed command. Otherwise, the task returns false if the executed command returns an exit code that does not match SuccessExitCode.
Public property IgnoreStandardErrorWarningFormat
Gets or sets a value indicating whether the output is examined for standard errors and warnings. This does not override errors and warnings defined via CustomErrorRegularExpression and CustomWarningRegularExpression.
Public property Outputs
Gets or sets the output items from the task. The Execute task does not set these itself. Instead, you can provide them as if it did set them, so that they can be used later in the project.
Public property StdErrEncoding
Gets or sets the StdErr stream encoding. Specifies the encoding of the captured task standard error stream. The default is the current console output encoding.
Public property StdOutEncoding
Gets or sets the StdOut stream encoding. Specifies the encoding of the captured task standard output stream. The default is the current console output encoding.
Public property SuccessExitCode
Gets or sets the success exit code for the command. Default is zero (0).
Public property WorkingDirectory
Gets or sets the directory in which the command will run.
Top
See Also

Reference