ToolTask.ExitCode Property

Definition

The return code of the spawned process. If the task logged any errors, but the process had an exit code of 0 (success), this will be set to -1.

C#
[Microsoft.Build.Framework.Output]
public int ExitCode { get; }
C#
[Microsoft.Build.Framework.Output]
public int ExitCode { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The returned exit code of the executable file. If the task logged errors, but the executable returned an exit code of 0, this method returns -1.

Attributes

Applies to

Proizvod Verzije
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17