Aliases.

NewIssue(ICakeContext, string, string, string, string) Method

Summary

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

Syntax

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

Examples

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

var issue =
        NewIssue(
            "Issue identifier",
            "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.
identifier string The identifier of the issue.
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.