I am building up my VS2010 project using "any cpu configuration" so that the executable can work for both 32 bit and 64 bit versions.
我正在使用“任何cpu配置”构建我的VS2010项目,以便可执行文件可以适用于32位和64位版本。
But after using ILMerge to generate a bundled exe, the resultant exe is only working in 64 bit system and for 32 bit system its showing
但是在使用ILMerge生成捆绑的exe之后,生成的exe只能在64位系统中工作,对于32位系统它的显示
This version of output.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
The ILMerge command used:
ILMerge命令使用:
C:\BuildTools\ilmerge.exe /out:proj1.exe output.exe 1.dll NLog.dll 2.dll targetplatform:v4 /ndebug
I tried to figure out any option in ILMerge to fix this, but do not find anything useful.
我试图找出ILMerge中的任何选项来解决这个问题,但是找不到任何有用的东西。
Any help on this will be of great help.
任何有关这方面的帮助都会有很大帮助。
1 个解决方案
#1
0
Figured out is the issue with Nlog.dll which was built in 64 bit environment. Fixed after converting it to Any Cpu
弄清楚是Nlog.dll的问题,它是在64位环境中构建的。将其转换为Any Cpu后修复
#1
0
Figured out is the issue with Nlog.dll which was built in 64 bit environment. Fixed after converting it to Any Cpu
弄清楚是Nlog.dll的问题,它是在64位环境中构建的。将其转换为Any Cpu后修复