Table of Contents

Class TargetModel

Namespace
Invex.Atom.Build.Model
Assembly
Invex.Atom.Build.dll

Represents a target within the build model, defining its tasks, dependencies, inputs, and outputs.

public sealed record TargetModel
Inheritance
object
TargetModel

Remarks

This model is generated by Atom on startup and is immutable by design.

Constructors

TargetModel(string, string?, bool)

Represents a target within the build model, defining its tasks, dependencies, inputs, and outputs.

public TargetModel(string Name, string? Description, bool IsHidden)

Parameters

Name string

The name of the target.

Description string

An optional description of the target.

IsHidden bool

A value indicating whether the target should be hidden from user-facing lists.

Remarks

This model is generated by Atom on startup and is immutable by design.

Properties

ConsumedArtifacts

Gets the artifacts that are consumed by this target.

public required IReadOnlyList<ConsumedArtifact> ConsumedArtifacts { get; init; }

Property Value

IReadOnlyList<ConsumedArtifact>
See Also

ConsumedVariables

Gets the variables that are consumed by this target.

public required IReadOnlyList<ConsumedVariable> ConsumedVariables { get; init; }

Property Value

IReadOnlyList<ConsumedVariable>
See Also

DeclaringAssembly

Gets the assembly in which this target was declared.

public required Assembly DeclaringAssembly { get; init; }

Property Value

Assembly

Dependencies

Gets the targets that must be executed before this target.

public required IReadOnlyList<TargetModel> Dependencies { get; init; }

Property Value

IReadOnlyList<TargetModel>

Description

An optional description of the target.

public string? Description { get; init; }

Property Value

string

IsHidden

A value indicating whether the target should be hidden from user-facing lists.

public bool IsHidden { get; init; }

Property Value

bool

Name

The name of the target.

public string Name { get; init; }

Property Value

string

Params

Gets the parameters that are used by this target.

public required IReadOnlyList<UsedParam> Params { get; init; }

Property Value

IReadOnlyList<UsedParam>

ProducedArtifacts

Gets the artifacts that are produced by this target.

public required IReadOnlyList<ProducedArtifact> ProducedArtifacts { get; init; }

Property Value

IReadOnlyList<ProducedArtifact>
See Also

ProducedVariables

Gets the variables that are produced by this target.

public required IReadOnlyList<string> ProducedVariables { get; init; }

Property Value

IReadOnlyList<string>
See Also

Tasks

Gets the collection of asynchronous tasks that will be executed when the target runs.

public required IReadOnlyList<Func<CancellationToken, Task>> Tasks { get; init; }

Property Value

IReadOnlyList<Func<CancellationToken, Task>>