Package only the EXE or EXE+DLL's ?

  • Thread starter Thread starter Chakra
  • Start date Start date
C

Chakra

If i have built a windows forms application which refers to several
components (built as class library projects) , should i package just the
EXE, or also the DLL's to the user ? Will the CSC embed the DLL's at compile
time into the EXE, or just reference them at runtime ?

Regards.
 
If the DLLs are class libraries that you have created then you must
distribute them along with the EXE. DLLs are not embedded in the EXE code.
If the EXE references Microsoft DLLs such as System, System.Drawing etc then
you do not need to redestribute these DLLs with your own install. They will
be in the .NET framework on the client machine.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Chakra said:
If i have built a windows forms application which refers to several
components (built as class library projects) , should i package just the
EXE, or also the DLL's to the user ? Will the CSC embed the DLL's at
compile
time into the EXE, or just reference them at runtime ?

In addition to Bob's reply: I would distribute the .NET Framework with the
application:

Deploying the .NET Framework in a setup package
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=deployframework&lang=en>
 
Back
Top