1
我想使用MSBuild提取目錄中的所有zip文件。而不是每個在目錄中找到每個壓縮文件解壓縮調用任務多次,我寧願使用循環不知何故,例如:如何使用MSBuild提取目錄中的多個zip文件
for each zip file in $(directory)
<unzip [email protected](zipFile) targetDirectory=$(destination) />
感謝,
我想使用MSBuild提取目錄中的所有zip文件。而不是每個在目錄中找到每個壓縮文件解壓縮調用任務多次,我寧願使用循環不知何故,例如:如何使用MSBuild提取目錄中的多個zip文件
for each zip file in $(directory)
<unzip [email protected](zipFile) targetDirectory=$(destination) />
感謝,
你靠近,使用批處理任務,像這樣:
<unzip file=%(zipFile.Identity) targetDirectory=$(destination) />
感謝Brian,它的工作原理。 – Jefe 2012-02-06 15:57:20