Reputation: 31186
I have configured MSBuild to zip all of the files in my bin directory upon compilation using MSBuild.Community.Tasks. However, it is not zipping the folders in my bin directory.
How do I configure MSBuild to zip my folders as well?
Here is the configuration:
<Target Name="Zip">
<CreateItem Include="bin\*">
<Output ItemName="ZipFiles" TaskParameter="Include" />
</CreateItem>
<Zip ZipFileName="zip\WebBinder.zip" WorkingDirectory="bin" Files="@(ZipFiles)" />
</Target>
Upvotes: 0
Views: 80
Reputation: 8908
Set the Include of your CreateItem to have "bin\**\*" to recurse into the directories.
<CreateItem Include="bin\**\*">
Upvotes: 1