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, CakeSettings settings)
Examples
CakeExecuteExpression(
"Information(\"Hello {0}!\", Argument<string>(\"name\"));",
new CakeSettings {
ToolPath="./Cake.exe" ,
Arguments = new Dictionary<string, string>{{"name", "World"}}
});
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
cakeExpression | string | The cake expression. |
settings | CakeSettings | The settings CakeSettings . |
Return Value
Type | Description |
---|---|
void |