ILMerge挂在合并 [英] ILMerge hangs on merge

查看:138
本文介绍了ILMerge挂在合并的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ILMerge结合9 .NET的DLL写在C#.NET 4的问题是ILMerge卡住,没有错误消息或任何东西。

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.

日志显示,ILMerge正确合并所有的组件,然后设置了写目标组件。它运行的程序集解析器的一堆引用,然后..没有。在成功解决System.Configuration日志显示没有别的。

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.

该计划继续使用CPU,但我不明白,如果是做任何事情。

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

中的任何一个人都有类似的经历?

Any one else had a similar experience?

推荐答案

看起来只是写出来的问题有帮助。

Looks like just writing out the question helped.

原来我需要添加 / targetplatform:V4 的命令。我的猜测是这是因为一些组件的使用.NET 4和一些使用.NET 2。

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.

这篇关于ILMerge挂在合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆