Including dlls in an exe
-
You could add them as resources. But, you'll need to extract them back to the disk in order to use them.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog
-
You could add them as resources. But, you'll need to extract them back to the disk in order to use them.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog
-
You can use ILMerge[^] to combine compiled .Net assemblies. Its a command line program so you can just load up cmd and run something similar to the following (as long as ILMerge.exe is somewhere in your PATH):
ilmerge /out:MyExe.exe MainAssembly.exe ReferencedDll1.dll ReferencedDll2.dll
That will combine
MainAssembly.exe
,ReferencedDll1.dll
andReferencedDll2.dll
into a stand alone exe calledMyExe.exe
. This exe can then be distributed on its own. Hope this helps :) Cheers, Will H -
You can use ILMerge[^] to combine compiled .Net assemblies. Its a command line program so you can just load up cmd and run something similar to the following (as long as ILMerge.exe is somewhere in your PATH):
ilmerge /out:MyExe.exe MainAssembly.exe ReferencedDll1.dll ReferencedDll2.dll
That will combine
MainAssembly.exe
,ReferencedDll1.dll
andReferencedDll2.dll
into a stand alone exe calledMyExe.exe
. This exe can then be distributed on its own. Hope this helps :) Cheers, Will H