ILMerge hangs on merge

和自甴很熟 提交于 2019-12-20 10:59:57

问题


I am using ILMerge to combine 9 .NET DLL's written in C# .NET 4. The problem is ILMerge gets stuck, no error message or anything.

The log shows that ILMerge merges all the assemblies correctly, then sets out to write the target assembly. It runs the assembly resolver for a bunch of references and then.. nothing. After successfully resolving System.Configuration the log shows nothing else.

The program continues to use the CPU but I don't see if it's doing anything.

Any one else had a similar experience?


回答1:


Looks like just writing out the question helped.

Turns out I needed to add /targetplatform:v4 to the command. My guess is it's because some of the assemblies use .NET 4 and some use .NET 2.




回答2:


I was experiencing problems with ILMerge hanging, but using IL Repack instead with the same arguments seemed to fix the issue for me.



来源:https://stackoverflow.com/questions/8671400/ilmerge-hangs-on-merge

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!