一旦我在 heat.exe 中构建我的项目,我就会遇到 MSBuild 的问题。我收到此错误消息:



我在这里查找了有关 stackoverflow 的可能解决方案:
Referred links

我尝试以各种方式更改我的配置,但无法掌握缺少的内容。

这就是我现在配置的方式。我希望能够同时针对 x64 和 x86 平台。

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>..\..\BuildArtifacts\SetupProjects\Myproject</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<OutputPath>..\..\BuildArtifacts\SetupProjects\Myproject</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Release</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>..\..\BuildArtifacts\SetupProjects\Myproject</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>..\..\BuildArtifacts\SetupProjects\Myproject</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Release</DefineConstants>
</PropertyGroup>

任何帮助表示赞赏,

最佳答案

更新 :在 WiX 的问题数据库中似乎有一个已解决的问题,您应该首先检查它。 请检查问题描述是否让人想起您的经历 : https://github.com/wixtoolset/issues/issues/2467

它似乎与 64 位 MSBuild 有关 - 异常与您描述的相同。也许从下往上阅读评论 - 底部最近有一条评论来自 2017 年。

我天真的第一个想法是您是否可以运行 32 位 MSBuild? (我对此知之甚少)。或者如链接问题的底部评论中所述,将可执行文件作为外部进程运行?

旧答案 :首先想到的是:我相信 heat.exe 有 64 位 COM 文件的问题。你的项目中有这些吗?只是提到它,可能还有另一个原因(也是)。如果可能的话,也许可以尝试通过删除 COM 文件并运行构建来进行测试。

我相信这个问题仍然存在。我对此知之甚少,但我被告知 FireGiant 的商业套件(换句话说,不是免费的)可以处理 64 位文件的高级收集。

关于visual-studio - (Wix) heat.exe 无法用 msbuild 加载,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49981194/

10-13 07:56
查看更多