I decided to use MSBuild Extension\'s Zip task to compress some of my source code at every build.
However, this not works:
Here's an alternative to MSBuild Community Tasks. If you're using .net 4.5.1, you can embed the System.IO.Compression functions in a UsingTask. This example uses ZipFile.CreateFromDirectory.