MSBuild.ExtensionPack.Compression Namespace

MSBuild Extension Pack

MSBuild.ExtensionPack.Compression Namespace MSBuild Extension Pack Help 4.0.12.0

Overview

This namespace hosts tasks that can be used to compress and work with compressed files.

Helpful Links

Microsoft Cabinet Software Development Kit

Microsoft Visual J# 2.0 Redistributable Package – Second Edition

Classes

  Class Description
Public class Code example Cab
Valid TaskActions are:

AddFile (Required: NewFile, CabFile, CabExePath, ExtractExePath, NewFileDestination)

Create (Required: PathToCab or FilesToCab, CabFile, ExePath. Optional: PreservePaths, StripPrefixes, Recursive)

Extract (Required: CabFile, ExtractExePath, ExtractTo Optional: ExtractFile)

Compatible with:

Microsoft (R) Cabinet Tool (cabarc.exe) - Version 5.2.3790.0

Microsoft (R) CAB File Extract Utility (extrac32.exe)- Version 5.2.3790.0

Remote Execution Support: No

Public class Code example DNZip

NOTE: This task is for backwards compatibility only. You should use the Zip task rather

Valid TaskActions are:

AddFiles (Required: ZipFileName, CompressFiles or Path Optional: CompressionLevel, MaxOutputSegmentSize, Password; RemoveRoot, UseZip64WhenSaving) Existing files will be updated

Create (Required: ZipFileName, CompressFiles or Path Optional: CompressionLevel, MaxOutputSegmentSize, Password; RemoveRoot, UseZip64WhenSaving)

Extract (Required: ZipFileName, ExtractPath Optional: Password)

Remote Execution Support: NA

This task uses http://dotnetzip.codeplex.com v1.9.1.8 for compression.

Public class Code example Zip
Valid TaskActions are:

AddFiles (Required: ZipFileName, CompressFiles or Path Optional: CompressionLevel, MaxOutputSegmentSize, Password; RemoveRoot, UseZip64WhenSaving) Existing files will be updated

Create (Required: ZipFileName, CompressFiles or Path Optional: CompressionLevel, MaxOutputSegmentSize, Password; RemoveRoot, UseZip64WhenSaving, PreserveAttributes)

Extract (Required: ZipFileName, ExtractPath Optional: Password)

Remote Execution Support: NA

This task uses http://dotnetzip.codeplex.com v1.9.1.8 for compression.