ZipAliases.

Zip(ICakeContext, DirectoryPath, FilePath, IEnumerable<FilePath>) Method

Summary

Zips the specified files.
Namespace
Cake.Common.IO
Containing Type
ZipAliases

Syntax

[CakeMethodAlias]
public static void Zip(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, IEnumerable<FilePath> filePaths)

Examples

var files = GetFiles("./**/Cake.*.dll");
Zip("./", "CakeAssemblies.zip", files);

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

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

Return Value

Type Description
void