Adding a Local Assembly Reference

  • Thread starter Thread starter Jonathan Wood
  • Start date Start date
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
 
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
 
you add the library project to your program solution, then you add the
library project as a reference instead of the dll.

/LM
 
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
 
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
 
Back
Top