我尝试创建将压缩构建包的 msbuild
我在 msbuild 文件中有这些行:
<UsingTask AssemblyFile="MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.Zip" />
<Zip Files="$(OutputFiles)" ZipFileName="output\SomeService.v$(BuildNumber).zip" />
当我运行这个 msbuild 时,我得到了异常:
错误 MSB4018:
“Zip”任务意外失败。\r C:\Projects\Services\SomeService\DeployClassificationService.build(92,5): 错误 MSB4018: System.IO.FileNotFoundException: 无法加载文件或程序集 'ICSharpCode.SharpZipLib, Version= 0.84.0.0,Culture=neutral,PublicKeyToken=1b03e6acf1164f73' 或其依赖项之一。系统找不到指定的文件。\r
什么是 ICSharpCode?我试图将它包含在 msbuild fir 中,但没有帮助。
谢谢, 阿隆