.net – ILMerge hangs on merge

ilmergenet

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?

Best Answer

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.

Related Topic