简体   繁体   English

ILMerge的问题

[英]Problems with ILMerge

I am trying to put .dll fles in my .exe file and I am getting this error: 我试图将.dll文件放入我的.exe文件中,并且出现此错误:

    ILMerge.exe: The assembly 'Final' has a value for it's PeKind flag 
    'Ilonly, requires32bits' that is not compatible with 'Ilonly, requires 32 
    bits, prefers32bits'

I entered this command in the command line: 我在命令行中输入了以下命令:

   ILMerge.exe exe\ConsoleApplication1.exe lib\Final.dll /out:Final.exe /closed /zeroPeKind

Could anyone help me on this? 有人可以帮我吗? I am not sure what this means, thank you! 我不确定这意味着什么,谢谢!

(1) A possible work-around, use CorFlags to change your library to match the required value. (1)可能的解决方法,请使用CorFlags更改您的库以匹配所需的值。

https://docs.microsoft.com/en-us/dotnet/framework/tools/corflags-exe-corflags-conversion-tool https://docs.microsoft.com/zh-cn/dotnet/framework/tools/corflags-exe-corflags-conversion-tool

(2) Your console application seems to have been built with "prefer 32 bit" in project properties. (2)您的控制台应用程序似乎是用项目属性中的“ prefer 32 bit”构建的。

You can clear this option, build your console application and try ILMerge again 您可以清除此选项,构建控制台应用程序,然后再次尝试ILMerge 偏好32位

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM