Summary
Zips the specified files.
Syntax
[CakeMethodAlias]
public static void Zip(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"
};
Zip("./", "CakeBinaries.zip", files);
Attributes
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