CakeTaskBuilderExtensions.

WithCriteria(CakeTaskBuilder, bool, string) Method

Summary

Adds a criteria that has to be fulfilled for the task to run.
Namespace
Cake.Core
Containing Type
CakeTaskBuilderExtensions

Syntax

public static CakeTaskBuilder WithCriteria(this CakeTaskBuilder builder, bool criteria, string message)

Parameters

Name Type Description
builder CakeTaskBuilder The task builder.
criteria bool The criteria.
message string The message to display if the task was skipped due to the provided criteria.

Return Value

Type Description
CakeTaskBuilder The same CakeTaskBuilder instance so that multiple calls can be chained.