Table of Contents

Class BuildDefinitionAttribute

Namespace
Invex.Atom.Build.Definition
Assembly
Invex.Atom.Build.dll

Marks a class as a build definition, triggering source generation to implement IBuildDefinition.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface)]
public sealed class BuildDefinitionAttribute : Attribute
Inheritance
object
Attribute
BuildDefinitionAttribute

Examples

[BuildDefinition]
public partial class MyBuild : BuildDefinition, IMyTargets
{
    // ...
}

Remarks

This attribute should be applied to a class that inherits from BuildDefinition or BuildDefinition. The source generator uses this attribute to identify the main build class and generate the necessary code to discover and register targets and parameters.

Constructors

BuildDefinitionAttribute()

public BuildDefinitionAttribute()