Can I include dll in exe (in Visual Studio)?

As long as your DLLs are . NET assemblies, then ILMerge should be able to combine your exe and all of its dependencies into a single file.

You can use a tool like boxedapp or thinstall...

2 I prefer to use BoxedApp. It is so simpl! – MastAvalons Dec 15 '11 at 16:55.

Yes, I left out the code to write the file out... FileStream so=new FileStream("c:\\wherever\\x. Dll",FileMode. Create); so.

Write(buf,0,ssize); so.Close(); No extra utilities required.

Include them as embedded. You can then extract them at run-time.

For example, add x. Dll to the project and set its Build Action to Embedded Resource. To extract: string AppPath=Assembly.

GetExecutingAssembly(). Location; Assembly ThisAssembly=Assembly. LoadFrom(AppPath); System.IO.

Stream fs=ThisAssembly. GetManifestResourceStream("yourproectname.x. Dll"); int ssize=(int)fs.

Length; byte buf=new bytessize; fs. Read(buf,0,ssize); fs.Close().

The first two lines are an unnecessary complication of "Assembly thisAssembly =Assembly. GetExecutingAssembly();". Then there is this line missing at the end: "Assembly.

Load(buf);". Finally, this is a horrible solution because you can then access the loaded assembly through reflection only. – Wim Coenen Jan 25 '09 at 2:23.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions