Create a zip file with the files specified.
Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)
Syntax
Example
Create a zip file
Copy Code | |
---|---|
<ItemGroup> <ZipFiles Include="**\*.*" Exclude="*.zip" /> </ItemGroup> <Target Name="Zip"> <Zip Files="@(ZipFiles)" ZipFileName="MSBuild.Community.Tasks.zip" /> </Target> |
Copy Code | |
---|---|
<ItemGroup> <RepoFiles Include="D:\svn\repo\**\*.*" /> </ItemGroup> <Target Name="Zip"> <Zip Files="@(RepoFiles)" WorkingDirectory="D:\svn\repo" ZipFileName="D:\svn\repo.zip" /> </Target> |
Inheritance Hierarchy
Thread Safety
Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
See Also
Documentation version 1.0.0.0.