Home All Groups Group Topic Archive Search About

Package only the EXE or EXE+DLL's ?

Author
23 Nov 2004 10:45 AM
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.

Author
23 Nov 2004 11:31 AM
Bob Powell [MVP]
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.





Show quote
"Chakra" <r_chakravar***@hotmail.com> wrote in message
news:%23PsyxfU0EHA.3452@TK2MSFTNGP14.phx.gbl...
> 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.
>
>
Author
23 Nov 2004 7:32 PM
Herfried K. Wagner [MVP]
"Chakra" <r_chakravar***@hotmail.com> schrieb:
> 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>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

AddThis Social Bookmark Button