有谁知道一种简单的方法,可以在构建后将ZIP /复制文件夹复制到另一个文件夹后自动对Debug / Release文件夹进行ZIP压缩?
不,没有简单的方法,AFAIK,您可以使用.bat文件并在构建后事件中调用它,也可以使用MSBuild脚本或FAKE来将F#用作脚本。
This solution will use 7-Zip to zip the output files to the solutions folder.
Create this zipper.bat file and place it in your solution folder:
"C:\Program Files\7-Zip\7z" a -y -tzip %2 %1 -mx5
echo done
Add this line to your Post-build events:
call "$(SolutionDir)zipper.bat" "$(TargetDir)" "$(SolutionDir)zipped.zip"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.