# <unzip>

[This is preliminary documentation and subject to change.]

Extracts files from a zip file.

Uses #ziplib (SharpZipLib), an open source Zip/GZip library written entirely in C#.

### Parameters

Attribute | Type | Description | Required
--- | --- | --- | ---
zipfile | file | The archive file to expand. | True
todir | directory | The directory where the expanded files should be stored. The default is the project base directory. | False
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False
unless | bool | Opposite of `if`. If false then the task will be executed; otherwise, skipped. The default is false. | False
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False

### Examples

- Extracts all the file from the zip, preserving the directory structure.

      <unzip zipfile="backup.zip"/>

### Requirements

Assembly: NAnt.CompressionTasks (0.85.1932.0)