开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜