tags:

views:

25

answers:

1

I have written a program that utilizes 2 3rd party dll's and I want to use ILMerge to merge both dll's into 1 executable.
I have tried using the command line:

ilmerge /target:winexe /out:final.exe normal.exe 3rd_party_dll_1.dll 3rd_party_dll_2.dll  

but this returns this error:

`Could not load assembly from the location 'C:\Users\...' Skipping and processing trest of arguments. `  

Am I missing something or is it possible that these dll's cannot be merged?

A: 

ILMerge doesn't work on native dlls out of the box, but there is a workaround.

Shay Erlichmen
what do you mean "native dlls"?
Nick S.
@Nick Dlls which are written not in .net
Shay Erlichmen
@Shay it is a Win32 MFC dll. I thought this would still work. Thanks.
Nick S.