Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ToolTask.ExitCode Property

Definition

Namespace:
Microsoft.Build.Utilities
Assembly:
Microsoft.Build.Utilities.Core.dll
Assembly:
Microsoft.Build.Utilities.dll
Assemblies:
Microsoft.Build.Utilities.dll, Microsoft.Build.Utilities.v3.5.dll
Assembly:
Microsoft.Build.Utilities.v4.0.dll
Package:
Microsoft.Build.Utilities.Core v15.9.20
Package:
Microsoft.Build.Utilities.Core v16.11.0
Package:
Microsoft.Build.Utilities.Core v17.14.8
Package:
Microsoft.Build.Utilities.Core v18.3.3
Package:
Microsoft.Build.Utilities.Core v18.4.0
Source:
ToolTask.cs
Source:
ToolTask.cs
Source:
ToolTask.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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.

public:
 property int ExitCode { int get(); };
[Microsoft.Build.Framework.Output]
public int ExitCode { get; }
[Microsoft.Build.Framework.Output]
public int ExitCode { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
[<Microsoft.Build.Framework.Output>]
member this.ExitCode : int
[<Microsoft.Build.Framework.Output>]
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.ExitCode : int
Public ReadOnly Property ExitCode As Integer

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