DocFxIssuesProviderAliases.

DocFxIssuesFromFilePath(ICakeContext, FilePath) Method

Summary

Gets an instance of a provider for warnings reported by DocFx using a log file from disk for a DocFx project in the repository root.

Syntax

public static ICodeAnalysisProvider DocFxIssuesFromFilePath(this ICakeContext context, FilePath logFilePath)

Examples

Report warnings reported by DocFx to a TFS pull request:

var repoRoot = new DirectoryPath("c:\repo");
    ReportIssuesToPullRequest(
        DocFxIssuesFromFilePath(
            "C:\build\docfx.log"),
        TfsPullRequests(
            new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
            "refs/heads/feature/myfeature",
            TfsAuthenticationNtlm()),
        repoRoot);

Attributes

Type Description
CakeAliasCategoryAttribute
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
logFilePath FilePath Path to the the DocFx log file.

Return Value

Type Description
ICodeAnalysisProvider Instance of a provider for warnings reported by DocFx.
GitHub