Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将项目打包到一个 zip 文件中,并将构建日期时间(或当前日期时间)作为 zip 文件名的一部分。
$(TargetDir)\7za.exe a release.zip *
因此,最好将日期合并到 release.zip 中,例如 release-14-3-2010-22_56.zip
是否可以定义自定义的构建后宏?
您可以将批处理文件称为构建后事件。
call "$(SolutionDir)zip.bat"
并让批处理文件读取日期时间。
这是一个例子