ToolTask.ExitCode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the returned exit code of the executable file.

Namespace:   Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.v4.0 (in Microsoft.Build.Utilities.v4.0.dll)

[OutputAttribute]
public int ExitCode { get; }

Property Value

Type: System.Int32

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.

.NET Framework
Available since 2.0
Return to top
Show: