Table of Contents

Class GeneratedFileSet

Namespace
ToSic.Sxc.Code.Generate.Sys
Assembly
ToSic.Sxc.Code.Generate.dll

Contains a list of code-files and additional specs

[WorkInProgressApi("still being standardized")]
public record GeneratedFileSet : IGeneratedFileSet, IEquatable<GeneratedFileSet>
Inheritance
object
GeneratedFileSet
Implements

Properties

Description

Description to show in the UI

public required string Description { get; init; }

Property Value

string

Files

List of files to generate

public required IReadOnlyCollection<IGeneratedFile> Files { get; init; }

Property Value

IReadOnlyCollection<IGeneratedFile>

Generator

Name of the generator, possibly with version

public required string Generator { get; init; }

Property Value

string

Name

Name for easy identification.

public required string Name { get; init; }

Property Value

string

Path

The path, but not sure yet how to do, especially if it will be relative or contain editions.

public required string Path { get; init; }

Property Value

string

Methods

FromSpecs(FileGeneratorSpecs, string, IReadOnlyCollection<IGeneratedFile>)

public static GeneratedFileSet FromSpecs(FileGeneratorSpecs specs, string name, IReadOnlyCollection<IGeneratedFile> files)

Parameters

specs FileGeneratorSpecs
name string
files IReadOnlyCollection<IGeneratedFile>

Returns

GeneratedFileSet