在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时。
有什么想法吗?
答案 0 :(得分:0)
您不应该从GAC收集DLL文件。 如果你真的想要,你可以使用copy local true属性,但是收获这些属性是错误的。
如果我没有弄错,这个DLL文件附带.Net,因此您可能需要使用安装程序为您的用户安装.net。