azure-devops - 在 Azure DevOps Pipeline 中使用 WiX 工具集 -> Torch.exe 不起作用
问题描述
我正在使用 Azure DevOps Services 管道来创建设置。此管道创建 MSI 和 wixpdb。然后我在命令行脚本中调用 torch.exe 以从两个不同的 wixpdb 创建补丁。这在本地工作没有问题,但是当我在 Azure DevOps Services Pipeline 的命令行脚本中调用 torch.exe 时,我收到以下错误:
torch.exe:错误 TRCH0001:找不到路径“C:\temp\Agent\4\s\test\udmonxof\udmonxof.cab”的一部分。
我能做些什么来完成这项工作?
解决方案
我已经解决了如下问题:
这对我有帮助:https ://github.com/wixtoolset/issues/issues/5778
我在命令行脚本中将以下条目添加到注册表:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AppContext] "Switch.System.DisableTempFileCollectionDirectoryFeature"="true"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\AppContext] "Switch.System.DisableTempFileCollectionDirectoryFeature"="true"
之后我调用了 torch.exe 并且不再发生错误。
推荐阅读
- linux - 缓冲区中值的跳跃索引
- html - 来自 HTML 的 Typescript Pass 访问器函数
- r - 查找两个数据集 R 之间的最近坐标
- flutter - Flutter Assets/Images 文件夹加上文件显示未跟踪/包含强调的项目错误
- javascript - 在前一个函数完成后执行一个函数
- docker - Docker:通过 VPN 容器将流量从一个容器路由到另一个容器
- docker - 在 FROM 指令中使用 Content Trust 时忽略 Docker --build-arg
- firebase - 在设备离线时响应本机应用程序发送推送通知
- java - Mediaplayer没有在android中启动
- powershell - 为什么 write-host 输出到成绩单但 write-information 没有?