Adding a Local Assembly Reference

J

Jonathan Wood

I've decided to place some of my commonly used routines into a common
library. So I created a separate project and added a reference to that
project from projects that use it.

This works fine except that it appears I have to reference the compiled DLL.
But I would like to reference the DLL in the debug folder when I'm doing a
debug build, and reference the DLL in the release folder when I'm doing a
release build.

How would you approach that?

Thanks.

Jonathan
 
A

Andy O'Neill

Jonathan Wood said:
I've decided to place some of my commonly used routines into a common
library. So I created a separate project and added a reference to that
project from projects that use it.

This works fine except that it appears I have to reference the compiled
DLL. But I would like to reference the DLL in the debug folder when I'm
doing a debug build, and reference the DLL in the release folder when I'm
doing a release build.

How would you approach that?

Thanks.

Jonathan
If it;s in the same folder then I think all you have to do is ensure the
reference has no folders in it and just the dll name.dll
 
L

Luc E. Mistiaen

you add the library project to your program solution, then you add the
library project as a reference instead of the dll.

/LM
 
J

Jonathan Wood

Thanks, that seems to work fine here.

However, what if I use the library in an ASP.NET application? Do I have to
change the reference to the DLL before uploading it to the server?

Thanks.

Jonathan
 
L

Luc E. Mistiaen

I am not a specialist of ASP.NET, but I think all will happen behind the
scene as the right dll is copied in the release directory when you build the
project.

/LM
 

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