我正在尝试并行构建一对 WiX 补丁项目(补丁创建项目..),但是我的 64 位配置总是因 PatchWiz 错误而失败:
INFO: Passed all of the main control parameter validation to PatchWiz, now calling the next 5 phases.
INFO: Phase I: Entered validation and processing phase.
ERROR: Internal PatchWiz Error occurred.
ERROR: The Last Error Received is: 0x20 (32)
INFO: Temporary folder is about to be cleaned out and deleted: C:\Users\TestUser\AppData\Local\Temp\~pcw_tmp.tmp
ERROR: Internal PatchWiz Error occurred.
ERROR: The Last Error Received is: 0x91 (145)
ERROR: During cleanup, could not delete the temporary folder: C:\Users\TestUser\AppData\Local\Temp\~pcw_tmp.tmp.
ERROR: The Last Error Received is: 0x91 (145)
我试过了:
- 运行前清理临时文件夹。
- 切换配置顺序。
- 在执行之间添加睡眠/超时
没有运气。
这是我正在执行的 build.proj:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\MSBuild.Extension.Pack.1.8.0\build\net40\MSBuild.Extension.Pack.targets" Condition="Exists('packages\MSBuild.Extension.Pack.1.8.0\build\net40\MSBuild.Extension.Pack.targets')" />
<PropertyGroup>
<ProductVersion>1.1.2</ProductVersion>
</PropertyGroup>
<Target Name="Compile32">
<MSBuild Targets="Build" Projects="Hotfix_Patch.wixproj"
Properties="Configuration=Debug;Platform=x86;ProductVersion=$(ProductVersion)" />
</Target>
<Target Name="Compile64">
<MSBuild Targets="Build" Projects="Hotfix_Patch.wixproj"
Properties="Configuration=Debug;Platform=x64;ProductVersion=$(ProductVersion)" />
</Target>
<Target Name="Build" >
<MSBuild.ExtensionPack.Framework.Parallel TaskAction="BuildTargetsInParallel" Targets="Compile64;Compile32"/>
</Target>
</Project>
我受 PatchWiz 的摆布吗?或者我可能做错了什么?任何黑客的想法?(并且不要说我首先通过修补/MSP 做错了!我意识到这一点!除此之外,我是一个重大升级 MSI 类型的人)。