ZipAliases.

Zip(ICakeContext, DirectoryPath, FilePath, string) Method

Summary

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

Syntax

[CakeMethodAlias]
public static void Zip(this ICakeContext context, DirectoryPath rootPath, FilePath outputPath, string pattern)

Examples

Zip("./", "XmlFiles.zip", "./*.xml");

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.
pattern string The pattern.

Return Value

Type Description
void