Starting with v3.0.0 of Cake, the C# build orchestration tool, a new TaskOf method has been introduced, which makes it easier to configure the various WithCriteria, Does, DoesForEach methods of a task. It means that you only have to specify the build context once, rather than in multiple places.
In this short video, I introduce this new method, and show an example of how it can be used, as well as comparing how the same script would have been completed before this feature was introduced.