Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attach DLL to ASP.NET Site

How do you attach a DLL to a asp.net site? I want to be able to debug and edit the DLL without having to keep replacing the reference in my asp.net site. I checked attach to process but didn't see the worker process. I am using asp.net, IIS 7.

like image 594
jumbojs Avatar asked Apr 04 '09 17:04

jumbojs


2 Answers

Just put it into /bin folder of your web application.

OR

Add reference to this .dll by right clicking on References > Add Reference > Browse > Select your .dll file and lick OK.

Then set it's "Copy Local" property to "True". This way .dll will be copied into /Bin folder each time you build application.

alt text http://xmages.net/out.php/i170817_1.png

like image 188
Konstantin Tarkus Avatar answered Sep 18 '22 20:09

Konstantin Tarkus


Using Visual Studio you should create a solution that has your website as a project and the DLL (code) as another project. Make a reference in the website project to the DLL project and it should update it automatically.

If you are not using the web application model and just the website model you could just have your DLL project output to your website's /bin directory directly. That will update the DLL in the website/bin folder whenever you build your DLL project.

like image 29
Brian Boatright Avatar answered Sep 18 '22 20:09

Brian Boatright