开发者

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

开发者 https://www.devze.com 2022-12-22 17:26 出处:网络
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.

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.zi开发者_开发问答p *

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?


You can call batch files as post build events.


call "$(SolutionDir)zip.bat"

and have the batch file read the date time.

Here is an example

0

精彩评论

暂无评论...
验证码 换一张
取 消