如何使用MSBuild在目录中提取多个zip文件

时间:2012-02-06 15:15:13

标签: msbuild extract unzip

我正在尝试使用MSBuild提取目录中的所有zip文件。而不是在目录中找到的每个zip文件多次调用解压缩任务,我宁愿以某种方式使用循环,例如:

for each zip file in $(directory)
    <unzip file=@(zipFile) targetDirectory=$(destination) />

谢谢,

1 个答案:

答案 0 :(得分:1)

您已经关闭,请使用任务批处理,如下所示:

<unzip file=%(zipFile.Identity) targetDirectory=$(destination) /> 
相关问题