Distribution of App w/ referenced .DLL

P

Pepi Tonas

Hi All,

I am using a DLL in an application. To start using it in my project, I
added it as a reference by right clicking on the reference folder and
adding the dll file.

Now, when I distribute my application:

(1) Must I include the DLL file?

(2) If so, won't it loose its reference as the dll file will be in
different folder on the deployment machine?

(3) Like we can do with Icons and other files, is there a way to embed
the DLL into the application, so that distribution is simpler?

Thanx for your help...
 
H

Herfried K. Wagner [MVP]

* Pepi Tonas said:
I am using a DLL in an application. To start using it in my project, I
added it as a reference by right clicking on the reference folder and
adding the dll file.

Now, when I distribute my application:

(1) Must I include the DLL file?
Yes.

(2) If so, won't it loose its reference as the dll file will be in
different folder on the deployment machine?

Install it in the same directory or into the GAC (more info in the MSDN
docs).
(3) Like we can do with Icons and other files, is there a way to embed
the DLL into the application, so that distribution is simpler?

The application will require the .NET Framework to be installed on the
target machine.

You can use the "ILLink.exe" tool to embed managed .NET DLLs into .NET
executables:

<http://www.gotdotnet.com/community/usersamples/Default.aspx?query=illink>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top