Class TargetState
Represents the current state and execution metrics of a target during a build run.
public sealed record TargetState
- Inheritance
-
objectTargetState
Constructors
TargetState(string)
Represents the current state and execution metrics of a target during a build run.
public TargetState(string Name)
Parameters
NamestringThe name of the target this state belongs to.
Properties
Name
The name of the target this state belongs to.
public string Name { get; init; }
Property Value
- string
RunDuration
Gets or sets the duration of the target's execution.
public TimeSpan? RunDuration { get; }
Property Value
- TimeSpan?
Remarks
This value is null until the target has completed execution (succeeded or failed).
Status
Gets or sets the current execution status of the target.
public TargetRunState Status { get; }