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.
Summary
Fails build if any issues are found with settings to limit to priority and issue provider types.
- Assembly
- Cake
.Issues .dll - Namespace
- Cake
.Issues - Containing Type
- Aliases
Syntax
public static void BreakBuildOnIssues(this ICakeContext context, IEnumerable<IIssue> issues, BuildBreakingSettings settings)
Examples
Fails build if issues with severity warning or higher from MsBuild are found:
BreakBuildOnIssues(
issues,
new BuildBreakingSettings
{
MinimumPriority = IssuePriority.Warning
IssueProvidersToConsider = [MsBuildIssuesProviderTypeName]
});
Fails build if issues with severity warning or higher are found, ignoring MsBuild issues:
BreakBuildOnIssues(
issues,
new BuildBreakingSettings
{
MinimumPriority = IssuePriority.Warning
IssueProvidersToIgnore = [MsBuildIssuesProviderTypeName]
});
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
issues | IEnumerable |
Issues which should be checked. |
settings | Build |
Settings to apply. |
Return Value
Type | Description |
---|---|
void |