This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.MsBuild.
Summary
Registers a new URL resolver with default priority of 0.
- Assembly
- Cake
.Issues .MsBuild .dll - Namespace
- Cake
.Issues .MsBuild - Containing Type
- MsBuildIssuesAliases
Syntax
public static void MsBuildAddRuleUrlResolver(this ICakeContext context, Func<MsBuildRuleDescription, Uri> resolver)
Examples
Adds a provider with default priority of 0 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)
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
resolver | Func |
Resolver which returns an System.Uri linking to a site
containing help for a specific MsBuildRuleDescription . |
Return Value
Type | Description |
---|---|
void |