CakeTaskBuilderOfTExtensions.

IsDependeeOf<TData>(CakeTaskBuilder<TData>, IEnumerable<string>) Method

Summary

Makes the task a dependency of the specified tasks.
Namespace
Cake.Core
Containing Type
CakeTaskBuilderOfTExtensions

Syntax

public static CakeTaskBuilder<TData> IsDependeeOf<TData>(this CakeTaskBuilder<TData> builder, IEnumerable<string> names) 
    where TData : class

Examples

TaskOf<Foo>("Leaf")
    .IsDependeeOf(["Default", "CI"]);

Type Parameters

Name Description
TData The type of the data context.

Parameters

Name Type Description
builder CakeTaskBuilder<TData> The task builder.
names IEnumerable<string> The names of the tasks the current task will be a dependency of.

Return Value

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