我下载了WiX 3.7的压缩版本。
现在,当我试图从命令行运行candle.exe时,我得到以下错误:
System.BadImageFormatException: Could not load file or assembly 'candle.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
即使不向candle.exe传递任何参数,我也会得到相同的错误。
在相同的环境中,如果我使用来自candle.exe 3.0的WiX,调用就能正常工作。
我漏掉了什么明显的东西吗?我应该改变任何设置吗?
发布于 2014-03-01 03:40:09
是。获得一个更新的.NET运行时。所需的运行时为4.0,尽管我在任何地方都找不到它的文档。在选择二进制发行版而不是安装程序时必须小心。
您也可能对这个错误报告感兴趣,它与“预期行为”一样关闭。
https://stackoverflow.com/questions/22103321
复制相似问题