473,503 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What reference should I add, Debug or Release?

VM
When I'm adding a reference to another project that is built as one of the
Projects in the Solution, should I add the dll in Debug or the one in
Release? I usually also do a batch build of everything (Release and Debug)
so I don't know if that would be a factor.
The reason I'm asking is that one of the projects that I'm adding to another
project as reference is not recognizing any of the new changes (new methods)
that I've made. I have to delete the reference and add it once again.
Sometimes (although it's happened only once), even if I delete the
reference, and rebuild the project (to add as a ref), and add the reference
again, it still doesn't know that I added several more methods to a class in
the project that's being referenced. In this rare case, The only way to fix
this is by erasing all copies of the dlls created in the solution directory
and rebuilding the whole thing again.

Thanks.
Nov 16 '05 #1
2 3162
VM wrote:
When I'm adding a reference to another project that is built as one of the
Projects in the Solution, should I add the dll in Debug or the one in
Release? I usually also do a batch build of everything (Release and Debug)
so I don't know if that would be a factor.
The reason I'm asking is that one of the projects that I'm adding to another
project as reference is not recognizing any of the new changes (new methods)
that I've made. I have to delete the reference and add it once again.
Sometimes (although it's happened only once), even if I delete the
reference, and rebuild the project (to add as a ref), and add the reference
again, it still doesn't know that I added several more methods to a class in
the project that's being referenced. In this rare case, The only way to fix
this is by erasing all copies of the dlls created in the solution directory
and rebuilding the whole thing again.


You should not add a reference to the DLL file, you should add a
reference to the Project itself (there's a tab on the dialog
specifically for project references). That way VS.NET will
automatically use the debug or release build of that dll depending on
the build that you're performing.

--
mikeb
Nov 16 '05 #2
VM
Thanks. I hadn't seen that Tab page.
"mikeb" <ma************@nospam.mailnull.com> wrote in message
news:Of**************@tk2msftngp13.phx.gbl...
VM wrote:
When I'm adding a reference to another project that is built as one of the Projects in the Solution, should I add the dll in Debug or the one in
Release? I usually also do a batch build of everything (Release and Debug) so I don't know if that would be a factor.
The reason I'm asking is that one of the projects that I'm adding to another project as reference is not recognizing any of the new changes (new methods) that I've made. I have to delete the reference and add it once again.
Sometimes (although it's happened only once), even if I delete the
reference, and rebuild the project (to add as a ref), and add the reference again, it still doesn't know that I added several more methods to a class in the project that's being referenced. In this rare case, The only way to fix this is by erasing all copies of the dlls created in the solution directory and rebuilding the whole thing again.


You should not add a reference to the DLL file, you should add a
reference to the Project itself (there's a tab on the dialog
specifically for project references). That way VS.NET will
automatically use the debug or release build of that dll depending on
the build that you're performing.

--
mikeb

Nov 16 '05 #3

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

Similar topics

26
4414
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
0
1152
by: Todd H | last post by:
when i create a c# class that inherits from a control, i'm not completely sure how to reference it in the ide. i reference it in the project, but i also want it to show up in the toolbox. when a...
0
237
by: Duncan Mole | last post by:
Hi, I know this is dumb (and probably in the wrong group) but if I add a reference to the release version of a company class library in debug and build it it works fine. If I then switch to...
2
3939
by: Scott Yost | last post by:
I reference a .NET DLL to import some of my custom types. I can build that DLL in debug or release mode, but I usually keep the debug one built so I can debug it. When I want to link to the release...
9
1985
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
3
2174
by: | last post by:
Since I need to dotfuscate my exe file anyway, does it make any difference if I use Debug or Release versions. Would a Debug version be easier to decompile/study/reverse engineer than a Release...
3
2295
by: mosscliffe | last post by:
I need to reference a file on my published server as "../mydir/myfile.txt", which is fine and it works. On my local develop computer the "../mydir" refers to C:\Program Files\Microsoft Visual...
2
2358
by: Epetruk | last post by:
Hello, I have a problem where an application I am working on throws an OutOfMemoryException when I run it in Release mode, whereas it doesn't do this when I am running in Debug. The...
11
3117
by: ThunderMusic | last post by:
Hi, I have a windows service that only loads a CSV file and import it's data using SqlBulkCopy in a newly created Sql Server 2005 table using 25000 rows batches. If I build the service in debug...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.