gpt4 book ai didi

.net - HEAT5151 给定的程序集名称或代码库无效

转载 作者:行者123 更新时间:2023-12-04 12:34:16 25 4
gpt4 key购买 nike

在 VS 2013 中使用 WiX 3.8 构建我的 WiX 项目时,我得到:

heat.exe(0,0): warning HEAT5151: Could not harvest data from a file that was expected to be an assembly: C:\local\eknapp\Workspace-Dispatcher\client\software\DISP.DesktopClient\DISP.DesktopClient\bin\debug\DISP.API.UI.dll. If this file is not an assembly you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: The given assembly name or codebase, 
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll', was invalid.

我检查了 GAC,WindowsBase.dll,版本 4.0 在那里。我用 Telerik 的 JustDecompile 查看了两个程序集,一切看起来都正常。该应用程序在 VS 中和在任意数量的计算机上安装(显然有缺陷的).msi 时都没有问题。

有什么想法吗?

最佳答案

您不应从 GAC 获取 DLL 文件。如果你真的想要,你可以使用复制本地 true 属性,但是收获那些是错误的。

如果我没记错的话,此 DLL 文件随 .Net 一起提供,因此您可能需要使用安装程序为您的用户安装 .net。

阅读这个 wix bug http://sourceforge.net/p/wix/bugs/2082/

关于.net - HEAT5151 给定的程序集名称或代码库无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20904084/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com