Table of Contents

Class GenerateSolutionModelAttribute

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

Triggers the source generation of a solution model based on a .sln or .slnx file.

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

Examples

[BuildDefinition]
[GenerateSolutionModel]
public partial class MyBuild : BuildDefinition
{
    // The generated solution model can now be accessed, e.g., `Solution.MyProject`.
}

Remarks

When this attribute is applied to a partial class, the source generator searches for a solution file in the project's root directory. It then generates a C# model representing the solution's structure, including projects and their dependencies, making it available for use within the build definition.

Constructors

GenerateSolutionModelAttribute()

public GenerateSolutionModelAttribute()