IIssueExtensions.

ReplaceIssuePattern(string, IIssue) Method

Summary

Returns a string with all patterns replaced by the values of issue.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
IIssueExtensions

Syntax

public static string ReplaceIssuePattern(this string pattern, IIssue issue)

Parameters

Name Type Description
pattern string Pattern whose values should be replaced. The following tokens are supported: DescriptionThe value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of .The value of or if message in HTML format is not available.The value of or if message in Markdown format is not available. The value of the key Key in . If the key Key does not exist in , nothing will be replaced.
Token
{ProviderType}
{ProviderName}
{Identifier}
{Priority}
{PriorityName}
{ProjectPath}
{ProjectDirectory}
{ProjectName}
{FilePath}
{FileDirectory}
{FileName}
{Line}
{EndLine}
{Column}
{EndColumn}
{FileLink}
{RuleId}
{RuleName}
{RuleUrl}
{Run}
{MessageText}
{MessageHtml}
{MessageMarkdown}
{AdditionalInformation:Key}
issue IIssue Issue whose values should be used to replace the patterns.

Return Value

Type Description
string Value with all patterns replaced.