Aliases.

NewIssue(ICakeContext, string, string, string) Method

Summary

Initiates the creation of a new IIssue with message as identifier.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
Aliases

Syntax

public static IssueBuilder NewIssue(this ICakeContext context, string message, string providerType, string providerName)

Examples

Create a new warning for the myfile.txt file on line 42:

var issue =
        NewIssue(
            "Something went wrong",
            "MyCakeScript",
            "My Cake Script")
            .InFile("myfile.txt", 42)
            .WithPriority(IssuePriority.Warning)
            .Create();

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
message string The message of the issue.
providerType string The unique identifier of the issue provider.
providerName string The human friendly name of the issue provider.

Return Value

Type Description
IssueBuilder Builder class for creating a new IIssue.