Here's a script to zip the contents of a folder. Again, this is posted more so I don't forget but hopefully someone else will find it useful.

Step 1

Get the MsBuild Community Tasks and unzip it or use NuGet to get the MsBuildTasks package.

Step 2

Import the task:

Step 3

Create your target:

<MSBuild.Community.Tasks.Zip ZipFileName="MyFilesButZipped.zip" WorkingDirectory="$(MyWorkingFolder)" Files="@(ZipContent)" />

Step 4

Save and run the script :)