TextTransformAliases.

TransformTemplate(ICakeContext, FilePath, TextTransformSettings) Method

Summary

Transform a text template.

Syntax

[CakeMethodAlias]
[CakeAliasCategory("T4 Text Templating")]
public static void TransformTemplate(this ICakeContext context, FilePath sourceFile, TextTransformSettings settings)

Examples

// Transform a .tt template.
var transform = File("./src/Cake/Transform.tt");
TransformTemplate(transform, new TextTransformSettings { OutputFile="./src/Cake/Transform.cs" });

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
sourceFile FilePath The source file.
settings TextTransformSettings The settings.

Return Value

Type Description
void