CakeHostExtensions Class

Summary

Contains extension methods for CakeHost.
Namespace
Cake.Frosting
Base Types
  • object
graph BT Type-->Base0["object"] Type["CakeHostExtensions"] class Type type-node

Syntax

public static class CakeHostExtensions

Methods

Name Value Summary
InstallTool(CakeHost, Uri) CakeHost
Registers a specific tool for installation.
static
SetToolPath(CakeHost, DirectoryPath) CakeHost
Sets the specified path as the path where tools and addins will be installed.
static
UseCakeSetting(CakeHost, string, string) CakeHost
Sets the specified Cake setting to the specified value.
static
UseContext<TContext>(CakeHost) CakeHost
Registers the specified context type. Only the last registration will be used.
static
UseLifetime<TLifetime>(CakeHost) CakeHost
Registers the specified lifetime type. Only the last registration will be used.
static
UseModule<TModule>(CakeHost) CakeHost
Registers the specified module type.
static
UsePackageInstaller<TPackageInstaller>(CakeHost) CakeHost
Registers a package installer.
static
UseSetup<TSetup>(CakeHost) CakeHost
Registers a setup action.
static
UseStartup<TStartup>(CakeHost) CakeHost
Specify the startup type to be used by the Cake host.
static
UseTaskLifetime<TLifetime>(CakeHost) CakeHost
Registers the specified task lifetime type. Only the last registration will be used.
static
UseTaskSetup<TSetup>(CakeHost) CakeHost
Registers a task setup action.
static
UseTaskTeardown<TTeardown>(CakeHost) CakeHost
Registers a task teardown action.
static
UseTeardown<TTeardown>(CakeHost) CakeHost
Registers a teardown action.
static
UseWorkingDirectory(CakeHost, DirectoryPath) CakeHost
Sets the relative working directory to be used when running the build.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin