CompressionAliases.

ZipCompress(ICakeContext, DirectoryPath, FilePath) Method

Summary

Create a Zip archive of the specified directory.
Assembly
Cake.Compression.dll
Namespace
Cake.Compression
Containing Type
CompressionAliases

Syntax

public static void ZipCompress(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath)

Examples

ZipCompress("./publish", "publish.zip");

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
rootPath DirectoryPath The root path.
outputPath FilePath The output path.

Return Value

Type Description
void