09 Sep 8
Combine All DLL and EXE into One
Often when we are developing on the .NET platform, we might try to link some external library or even create our very own to facilitate the development. This usually results in a bunch of dll together with the exe sitting inside the bin folder. It’s ugly and troublesome for user in case certain dll is missing.
Now, we got a solution from a microsoft researcher. ILMerge is a utility developed to merge multiple dll/exe into one.
// To merge into a single exe. ILMerge.exe /out:Combined.exe path_to_bin/original.exe path_to_lib/lib.dll // To merge into a single dll ILMerge.exe /out:Combined.dll path_to_lib/lib.dll path_to_lib/lib2.dll
*note that, the merge only work good with dll created under .NET platform.