CakeTaskBuilderExtensions.

DoesForEach<TItem>(CakeTaskBuilder, IEnumerable<TItem>, Action<TItem, ICakeContext>) Method

Summary

Adds an action to be executed foreach item in the list.
Namespace
Cake.Core
Containing Type
CakeTaskBuilderExtensions

Syntax

public static CakeTaskBuilder DoesForEach<TItem>(this CakeTaskBuilder builder, IEnumerable<TItem> items, Action<TItem, ICakeContext> action)

Type Parameters

Name Description
TItem The item type.

Parameters

Name Type Description
builder CakeTaskBuilder The task builder.
items IEnumerable<TItem> The items.
action Action<TItem, ICakeContext> The action.

Return Value

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