Class ClickTwiceManagerExtensions
Extension methods for the ClickTwiceManager
Inheritance
Inherited Members
Namespace:Cake.ClickTwice
Assembly:Cake.ClickTwice.dll
Syntax
public static class ClickTwiceManagerExtensions
Methods
| Improve this Doc View SourceCleanAfterBuild(ClickTwiceManager)
Enables cleaning the output directory after a complete build
Declaration
public static ClickTwiceManager CleanAfterBuild(this ClickTwiceManager manager)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
ForceRebuild(ClickTwiceManager)
Enables forcing a rebuild of the application, even if a build is up-to-date
Declaration
public static ClickTwiceManager ForceRebuild(this ClickTwiceManager manager)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
LogTo(ClickTwiceManager, IPublishLogger)
Adds a new IPublishLogger to the Loggers collection
Declaration
public static ClickTwiceManager LogTo(this ClickTwiceManager manager, IPublishLogger logger)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
IPublishLogger | logger | A IPublishLogger to log messages to |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
SetBuildPlatform(ClickTwiceManager, MSBuildPlatform)
Sets the build platform to use when invoking MSBuild
Declaration
public static ClickTwiceManager SetBuildPlatform(this ClickTwiceManager manager, MSBuildPlatform platform)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
Cake.Common.Tools.MSBuild.MSBuildPlatform | platform | The Cake.Common.Tools.MSBuild.MSBuildPlatform platform to build for |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
SetConfiguration(ClickTwiceManager, String)
Sets the build configuration to use when invoking MSBuild
Declaration
public static ClickTwiceManager SetConfiguration(this ClickTwiceManager manager, string configuration)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
System.String | configuration | The configuration to build for |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
ThrowOnHandlerFailure(ClickTwiceManager)
Enables aborting the build if an input handlers fails with an error
Declaration
public static ClickTwiceManager ThrowOnHandlerFailure(this ClickTwiceManager manager)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
Remarks
Handlers returning NotRun will be ignored.
WithHandler(ClickTwiceManager, IHandler)
Adds an input or output handler to the build pipeline
Declaration
public static ClickTwiceManager WithHandler(this ClickTwiceManager manager, IHandler handler)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
IHandler | handler | The handler (IInputHandler or IOutputHandler) to use |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
Remarks
If a given object implements both IInputHandler and IOutputHandler it will be added to both stages of the build pipeline
WithHandlers(ClickTwiceManager, IEnumerable<IHandler>)
Adds multiple input or output handlers to the build pipeline
Declaration
public static ClickTwiceManager WithHandlers(this ClickTwiceManager manager, IEnumerable<IHandler> handlers)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
System.Collections.Generic.IEnumerable<IHandler> | handlers | A collection of IHandler-based handlers to use |
Returns
Type | Description |
---|---|
ClickTwiceManager | The updated manager |
Remarks
If a given object implements both IInputHandler and IOutputHandler it will be added to both stages of the build pipeline
WithVersion(ClickTwiceManager, String)
Manually sets the publish version to the provided value
Declaration
public static ClickTwiceManager WithVersion(this ClickTwiceManager manager, string s)
Parameters
Type | Name | Description |
---|---|---|
ClickTwiceManager | manager | The manager |
System.String | s | The version string to use |
Returns
Type | Description |
---|---|
ClickTwiceManager |