27 lines
759 B
C#
27 lines
759 B
C#
namespace Matrix42.Extensions.Scaffolder.Core
|
|
{
|
|
/// <summary>
|
|
/// Describes a single file to generate from a template.
|
|
/// </summary>
|
|
public sealed class TemplateFile
|
|
{
|
|
/// <summary>
|
|
/// Path relative to project folder (for project files)
|
|
/// or ExtensionPath (for root-level files).
|
|
/// Example: "Controllers\\TestController.cs" or "BuildEvent.cmd".
|
|
/// </summary>
|
|
public string RelativePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Template content (with tokens like {ns}, {projectName} etc.).
|
|
/// </summary>
|
|
public string Content { get; set; }
|
|
|
|
/// <summary>
|
|
/// If true, file is only created if it doesn't exist.
|
|
/// If false, it will be overwritten.
|
|
/// </summary>
|
|
public bool CreateIfMissingOnly { get; set; } = true;
|
|
}
|
|
}
|