Possible Duplicate:
Embedding DLLs in a compiled executable
I have a c# winforms application along with a few depending .dlls and a dependant external .exe.
Is it possible to somehow complile all of them into one executable (not installer) just stand alone executable?
From VS 2010 Ultimate if possible?
In short: the only way that may work is to add all external files as an embedded resource and use
ILMerge.Option #1: the following steps show how to embed a resource file Inside Visual Studio :
You will have that file reference inside the exe. Later you can use Reflection and get the resource when you run your application. Borrowed Source Code from here:
Option #2 with managed dll’s:
For the managed DLLs you have a couple of options:
Check out the following CodeProject article that explains this .