MsBuildIssuesAliases.

MsBuildIssuesFromContent(ICakeContext, string, BaseMsBuildLogFileFormat) Method

Summary

Gets an instance of a provider for issues reported as MsBuild warnings using log content.

Syntax

public static IIssueProvider MsBuildIssuesFromContent(this ICakeContext context, string logFileContent, BaseMsBuildLogFileFormat format)

Examples

Read issues reported as MsBuild warnings:

var issues =
        ReadIssues(
            MsBuildIssuesFromContent(
                logFileContent,
                MsBuildXmlFileLoggerFormat)),
            @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
logFileContent string Content of the the MsBuild log file. The log file needs to be in the format as defined by the format parameter.
format BaseMsBuildLogFileFormat Format of the provided MsBuild log file.

Return Value

Type Description
IIssueProvider Instance of a provider for issues reported as MsBuild warnings.