SevenZipAliases.

SevenZip(ICakeContext, SevenZipSettings, Action<CommandBuilder>) Method

Summary

Runs 7zip, using SevenZipSettings for configuration and additionally CommandBuilder for fluent configuration of the Command.

Works exactly like Cake.SevenZip.SevenZipAliases.SevenZip(ICakeContext,System.Action{Cake.SevenZip.Builder.CommandBuilder}) However, the settings are supplied to set e.g. the ToolPath or something else.

DO NOT set Command on the SevenZipSettings, as it will be overwritten by the CommandBuilder.

Namespace
Cake.SevenZip
Containing Type
SevenZipAliases

Syntax

[CakeMethodAlias]
public static void SevenZip(this ICakeContext context, SevenZipSettings settings, Action<CommandBuilder> action)

Attributes

Type Description
CakeMethodAlias

Parameters

Name Type Description
context ICakeContext The ICakeContext.
settings SevenZipSettings The SevenZipSettings.
action Action<CommandBuilder> The fluent CommandBuilder-Builder.

Return Value

Type Description
void
GitHub Discussion