我下载了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,我也会收到同样的错误。
在同一环境中,如果我使用来自WiX 3.0的candle.exe,则调用正常。
我错过了一些明显的东西吗?我应该更改任何设置吗?
答案 0 :(得分:0)
是。获取更新的.NET运行时。所需的运行时间是4.0,但我无法在任何地方找到它。选择二进制分发而不是安装程序时必须小心。
你可能也对这个bug report感兴趣,它与“预期的行为”一样封闭。