CompressionAliases.

ZipCompress(ICakeContext, DirectoryPath, FilePath, IEnumerable<string>) Method

Summary

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

Syntax

public static void ZipCompress(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<string> filePaths)

Examples

var files = new [] {
    "./src/Cake/bin/Debug/Autofac.dll",
    "./src/Cake/bin/Debug/Cake.Common.dll",
    "./src/Cake/bin/Debug/Cake.Core.dll",
    "./src/Cake/bin/Debug/Cake.exe"
};
ZipCompress("./", "cakebinaries.zip", files);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
rootPath DirectoryPath The root path.
outputPath FilePath The output path.
filePaths IEnumerable<string> The file paths.

Return Value

Type Description
void