BuildResult.Exception Property

Definition

Returns the exception generated while this result was run, if any.

C#
public Exception Exception { get; }
C#
public override Exception? Exception { get; }
C#
[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public Exception Exception { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The exception generated for this build result set. Returns false if no exception occurred.

Attributes

Applies to

Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17