A Visual Studio post-build command-line deployment tool.
Download Info-ZIP's command-line zip.exe:
zip.exein your Windows directory (or anywhere on the system
Add an environment variable called
VSDEPLOY_OUTPUT, and set it to the full path of where you'd like to place completed zips (omit the trailing slash)
For any project you'd like to auto-deploy, open it's build events (
Project > [Project Name] Properties > Build Events) and add the following to the post-build event command line:
vsdeploy -bin "$(TargetDir)" -zip "$(VSDEPLOY_OUTPUT)" -target $(TargetFileName)
Optional: set "Run the post-build event" to "When the build updates the project output"
Build your project.
-bin <path> : the output directory of the visual studio project
-zip <path> : the directory in which to store output zip files
-target <filename> : the filename of your project's main DLL or EXE file
-name <name> : name used to generate the zip file's name.
-exclude <mask> : filename mask of files to exclude. This argument (and it's parameter) may be supplied more than once.
-include <mask> : filename mask of files to include. This argument (and it's parameter) may be supplied more than once.