How can I link dlls (integrate them) into my program? I would like to just have one single exe, and not having to distribute a zip or installer...


With .NET you don't.

Go ahead and give your deployment project a shot. It is also helpful because if you compile, say, a .NET 3.5 application and they don't have the framework installed then the application will just crash and you can't even show an error message box saying what the problem is. With installers you have launch conditions. One added for you by default is for the .NET framework.

There are a couple of tricky ways to do what you're asking but they have a negative performance impact and sometimes trigger false-positives on AntiVirus due to the nature of how they work.

Hello tiwas,Sknake is right
No need to include any dll with your project, when you made your setup, you selected primary output in that, that primary output include all dll of your project and a setup file, when you install your application on user end..........:)

Thing is that it's an internal release for a small helper app, and emailing my boss just one file is sooo much more convenient than sending an installation ;)

Thanks, though :)

An msi installer is one file .... So wouldn't that be convenient too?

Good luck

Not really - we're not allowed to install anything here. I used to be a sysadmin, I even I cannot understand why they're so strict :S

But...I'll just zip up the two files and ignore my boss' moaning :p

>>But...I'll just zip up the two files and ignore my boss' moaning :p
Sometimes that is the best solution ;)

Please mark this thread as solved if you have found a suitable answer to your question and good luck!