我正在尝试使用MSBuild提取目录中的所有zip文件。而不是在目录中找到的每个zip文件多次调用解压缩任务,我宁愿以某种方式使用循环,例如:
for each zip file in $(directory)
<unzip file=@(zipFile) targetDirectory=$(destination) />
谢谢,
答案 0 :(得分:1)
您已经关闭,请使用任务批处理,如下所示:
<unzip file=%(zipFile.Identity) targetDirectory=$(destination) />