Table of Contents

Interface IFileGeneratorSpecs

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

Specs for a file generator.

An object containing these specs - and sometimes more - is passed to the file generator.

[WorkInProgressApi("still being standardized")]
public interface IFileGeneratorSpecs

Remarks

WIP v17.04

Properties

AppId

The AppId of the app for which the file is generated.

int AppId { get; }

Property Value

int

ContentTypes

The content types to generate files for. If null, use all available content types in the "Default" scope + the app settings/resources.

ICollection<string>? ContentTypes { get; init; }

Property Value

ICollection<string>

DateTime

The moment the generation was performed.

DateTime DateTime { get; }

Property Value

DateTime

Edition

The Edition for which we're generating the file.

string? Edition { get; }

Property Value

string

Namespace

Alternate namespace to use for the generated code files. If null, just use automatic / default namespace.

string? Namespace { get; init; }

Property Value

string

TargetPath

The target path for the generated code files. If null, use default path.

string? TargetPath { get; init; }

Property Value

string