Merge DLL into EXE?

c#, dll, ilmerge, merge

Solution

For .NET Framework 4.5

ILMerge.exe /target:winexe /targetplatform:"v4,C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /out:finish.exe insert1.exe insert2.dll

ILMerge

- Open CMD and cd to your directory. Let's say: `cd C:\test`

- Insert the above code.

- `/out:finish.exe` replace `finish.exe` with any filename you want.

- Behind the `/out:finish.exe` you have to give the files you want to be combined.

Problem

I have two DLL files which I'd like to include in my EXE file to make it easier to distribute it. I've read a bit here and there how to do this, even found a good thread here, and here, but it's far too complicated for me and I need real basic instructions on how to do this. I'm using Microsoft Visual C# Express 2010, and please excuse my "low standard" question, but I feel like I'm one or two level below everyone else's expercise :-/ If someone could point out how to merge these DDL files into my EXE in a step-by-step guide, this would be really awesome!

Original source

Related problems