Matthias Müller
Matthias Müller

Reputation: 3473

Embedding external DLLs in a EXE

I made a program for a customer with some external DLLs I copy local. The program itself is fine, but the customer wants just 1 exe-file, without the needed dlls in the folder.

I tried to use the attribute "Embed interop types" but this doesnt work. Another approach was something called 'monolithic' EXE-files, but I cant find anything about this in the web.

Is there a easy solution for this? Or is this not possible?

Thanks for your response.

Matthias

Upvotes: 2

Views: 1377

Answers (1)

Oliver
Oliver

Reputation: 45071

If all DLLs are .Net assemblies you could check out ILMerge or add the assemblies as ressource and attach to the AssemblyResolve event like mentioned here.

Upvotes: 2

Related Questions