On Thu, 9 Mar 2006 18:38:58 +0100, Dariusz Tomon wrote:
Hello
I have got windows application project (C# Visual Studio 2003) with
references to external dlls. All I want is to compile everything into one
exe file, so that I can send it to another machine and it works.
This is not a trivial thing to do. If you have the source code of all the
DLL (and if they are all .NET assemblies), then you could place their
source files in your exe project and remove all the DLL references. Note
that the user will still need to have the appropriate version of the .NET
Framework installed on their machine.
If you can't do that, then you'll need to buy some tool that can place
everything in one exe file and dynamically extract the DLL files when the
application is run. These tools usually don't come cheap (although i have
never researched this issue thoroughly) and there is obviously a
performance hit in doing that.
Alternatively, what you could do is create a setup program packaged in one
exe file that would install the application and all its DLLs on the user's
PC. There are loads of software that you could use to do that
(InstallShield, Setup Factory, Inno Setup...) both free and commercial.
Google will tell you more.