How to add a build time to a file archive as a post-build macro?

Posted by Ashley Simpson on Stack Overflow See other posts from Stack Overflow or by Ashley Simpson
Published on 2010-03-14T01:57:40Z Indexed on 2010/03/14 2:05 UTC
Read the original article Hit count: 340

I want to pack the project into a zip-file and have the build date time (or the current date time) as part of the zip-filename.

$(TargetDir)\7za.exe -a release.zip *.*

So it would be nice to incorporate the date into the release.zip, something like release-14-3-2010-22_56.zip

Is it possible to define custom post-build macros?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about macros