Table of Contents

Hx_FileRazorGenerate

Generates a file using the passed Razor template file and passed list of data items. Example: @using System @using Microsoft.Build.Framework @inherits RazorEngineCore.RazorEngineTemplateBase<ITaskItem[]> @DateTime.UtcNow.ToShortDateString() @foreach (var item in Model) { - @item.GetMetadata("description") @: }

TemplateFile

Required: true

Path to the Razor *.cshtml template file.

GeneratedFile

Required: true

Path of the output generated file.

Data

Data items to be passed to the template file as the 'Model' with any metadata.