ToolTask.ExitCode 属性

定义

生成的进程的返回码。The return code of the spawned process. 如果任务记录了任何错误,但进程的退出代码为 0(成功),这设置为 -1。If the task logged any errors, but the process had an exit code of 0 (success), this will be set to -1.

public:
 property int ExitCode { int get(); };
[Microsoft.Build.Framework.Output]
public int ExitCode { get; }
[<Microsoft.Build.Framework.Output>]
member this.ExitCode : int
Public ReadOnly Property ExitCode As Integer

属性值

Int32

可执行文件返回的退出代码。The returned exit code of the executable file. 如果该任务记录了错误,但是可执行文件返回的退出代码为 0,则此方法将返回 -1。If the task logged errors, but the executable returned an exit code of 0, this method returns -1.

属性

适用于