What reference should I add, Debug or Release?

V

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.
 
M

mikeb

VM said:
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.
 
V

VM

Thanks. I hadn't seen that Tab page.


mikeb said:
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.
 

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