473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Dll in both Bin and Debug folder

When you do a build in VS 2003 you get a DLL in both the obj\debug(or
release) folders as well as the bin folder.

If you are going to use the DLL in some other probject or point another
project to this DLL, would you use or point at the DLL in the Bin folder?

Thanks,

Tom
Jan 26 '07 #1
3 3967
I believe you can just copy the .dll to your project's .bin folder and
it will work. This is decent option if the .dll is complete and you
don't foresee changing it often. I do this for third-party .dlls from
microsoft or infragistics that I don't plan on changing.

For my own .dlls that I create, I usuall add the project to my
solution, then reference the project from the other project that wants
to use it. When you recompile the solution, all dlls will be
recompiled and automatically copied to the correct .bin folders.

Jan 26 '07 #2
On Fri, 26 Jan 2007 10:34:02 -0800, tshad wrote:
When you do a build in VS 2003 you get a DLL in both the obj\debug(or
release) folders as well as the bin folder.

If you are going to use the DLL in some other probject or point another
project to this DLL, would you use or point at the DLL in the Bin folder?

Thanks,

Tom
Where possible, use project references over direct DLL references,
especially if the DLL is changing frequently so as to save you the hassle
of removing and adding again. Remember .NET versions these DLL to protet
you from DLL hell
--
Bits.Bytes
http://bytes.thinkersroom.com
Jan 28 '07 #3
"Rad [Visual C# MVP]" <no****@nospam.comwrote in message
news:1t****************@thinkersroom.com...
On Fri, 26 Jan 2007 10:34:02 -0800, tshad wrote:
>When you do a build in VS 2003 you get a DLL in both the obj\debug(or
release) folders as well as the bin folder.

If you are going to use the DLL in some other probject or point another
project to this DLL, would you use or point at the DLL in the Bin folder?

Thanks,

Tom

Where possible, use project references over direct DLL references,
especially if the DLL is changing frequently so as to save you the hassle
of removing and adding again. Remember .NET versions these DLL to protet
you from DLL hell
Right, but when you move the application to the server - you would have to
move the DLLs to that server.

Also, I was curious if I should point them at the DLL that is created in the
bin folder verses the release or debug folders. I assume the DLL in the Bin
folder will be the last build. It will either be the same as the one in the
release folder or the debug folder, depending on what mode was built last.

Thanks,

Tom
--
Bits.Bytes
http://bytes.thinkersroom.com

Jan 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Larry | last post by:
In the directory Structure in a .NET solution I have noticed that there are three different Executables. One in the bin sub-directory, One in the obj/release sub-directory One in the obj/debug...
2
by: °Ë´óɽÈË | last post by:
As you know, we can write our Designers for our controls, and they would be called in design time of vs.net IDE. But how to debug them?
0
by: RS | last post by:
Is there a way to debug a C style DLL from another folder other than the usual debug folder. I have some 3rd party software that I want to interface with, and this software looks for a folder...
1
by: Jason Shohet | last post by:
I am getting an error when I compile a web setup project: Could not find fild 'C:\...\obj\Release\myApp.dll' In the Config Manager, I have the application set to 'Debug' -- not release. Thats...
8
by: | last post by:
I'm starting up the development server myself and using the "Startup Url" property of the web project. The problem is i cannot debug. The debug symbols are never loaded. I realize they are under...
3
by: Irfan | last post by:
hi, All After using the 'build' i try to run the exe form bin folder, and it works fine. However, when i run it form debug folder it gives me a 'filenotFoundException'. Can anybody suggest why...
0
by: Tim | last post by:
Hi, I am facing a problem with a legacy application a part of which is being ported to VS 2005. I have a VB exe 'A.Exe' (legacy code) calling methods from a C-Sharp dll say, 'C.dll', which in...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
3
by: Chris | last post by:
When I go into debug mode and the web page I am working on opens in the browser via the local Cassini Web Server I get a path appended onto the full path e.g. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.