MSBuild Extension Pack Zip the folders and subfolders
Posted
by ManojTrek
on Stack Overflow
See other posts from Stack Overflow
or by ManojTrek
Published on 2010-05-25T17:18:04Z
Indexed on
2010/05/25
17:21 UTC
Read the original article
Hit count: 555
msbuildcommunitytasks
I have to Zip my folders and subfolders Using MSbuild, I was looking at the MSBuild Extension pack, and tried this
<ItemGroup>
<ZipFiles Include="\Test\Web\**\*.*" >
<Group>Release</Group>
</ZipFiles>
</ItemGroup>
<MSBuild.ExtensionPack.Compression.Zip TaskAction="Create" CompressFiles="@(ZipFiles)" ZipFileName="$(WorkingDir)%(ZipFiles.Group).zip"/>
When I do this it just keep adding all the files to root, instead of adding it into the specific subfolder within the zip file.
I am missing something, can anyone help here please.
© Stack Overflow or respective owner