CakeAliases.

CakeExecuteExpression(ICakeContext, string) Method

Summary

Executes Cake expression out of process
Namespace
Cake.Common.Tools.Cake
Containing Type
CakeAliases

Syntax

[CakeMethodAlias]
public static void CakeExecuteExpression(this ICakeContext context, string cakeExpression)

Examples

CakeExecuteExpression("Information(\"Hello {0}\", \"World\");");

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
cakeExpression string The cake expression

Return Value

Type Description
void