GenericIssueReportFormatAliases.

GenericIssueReportFormatFromContent(ICakeContext, string) Method

Summary

Gets an instance of the generic report format using a template string.

Syntax

public static IIssueReportFormat GenericIssueReportFormatFromContent(this ICakeContext context, string templateContent)

Examples

Create HTML report from a template string:

template =
        "<ul>@foreach(var issue in Model){<li>@issue.Message</li>}</ul>";
    CreateIssueReport(
        issues,
        GenericIssueReportFormatFromContent(template),
        @"c:\repo",
        @"c:\report.html");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
templateContent string Content of the template to use for generating the report.

Return Value

Type Description
IIssueReportFormat Instance of the generic report format.