5

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?

Nick Sinas
  • 2,594
  • 11
  • 42
  • 51

1 Answers1

6

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

Shay Erlichmen
  • 31,691
  • 7
  • 68
  • 87