MsBuildIssuesAliases.

MsBuildAddRuleUrlResolver(ICakeContext, Func<MsBuildRuleDescription, Uri>, int) Method

Summary

Registers a new URL resolver with a specific priority.

Syntax

public static void MsBuildAddRuleUrlResolver(this ICakeContext context, Func<MsBuildRuleDescription, Uri> resolver, int priority)

Examples

Adds a provider of priority 5 returning a link for all rules of the category CA to search msdn.microsoft.com with Google for the rule:

MsBuildAddRuleUrlResolver(x =>
    x.Category.ToUpperInvariant() == "CA" ?
    new Uri("https://www.google.com/search?q=%22" + x.Rule + ":%22+site:msdn.microsoft.com") :
    null,
    5)

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
resolver Func<T, TResult> Resolver which returns an System.Uri linking to a site containing help for a specific BaseRuleDescription.
priority int Priority of the resolver. Resolver with a higher priority are considered first during resolving of the URL.

Return Value

Type Description
void
GitHub