ILMerge Best Practices

Question :

ILMerge Best Practices,

Answer :

Do you use ILMerge? Do you use ILMerge to merge multiple assemblies to ease deployment of dll’s? Have you found problems with deployment/versioning in production after ILMerging assemblies together?

I’m looking for some advice in regards to using ILMerge to reduce deployment friction, if that is even possible.


I use ILMerge for almost all of my different applications. I have it integrated right into the release build process so what I end up with is one exe per application with no extra dll’s.

Read More  Can you recommend a good .NET web-based repository browser for SVN?

You can’t ILMerge any C++ assemblies that have native code.
You also can’t ILMerge any assemblies that contain XAML for WPF (at least I haven’t had any success with that). It complains at runtime that the resources cannot be located.

I did write a wrapper executable for ILMerge where I pass in the startup exe name for the project I want to merge, and an output exe name, and then it reflects the dependent assemblies and calls ILMerge with the appropriate command line parameters. It is much easier now when I add new assemblies to the project, I don’t have to remember to update the build script.

Read More  VMWare Server Under Linux Secondary NIC connection

That’s the answer ILMerge Best Practices, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you