How make Release build use references to Release components & visa versa?

E

Ed Sutton

My solution contains multiple C# and C++ components as well as a deployment
project.

In my top-level C# WinForms application, I added references to some
components by browsing to the \bin\debug\*.dll of the desired component.
How can I make it use a debug build of a component for a debug build, and a
release build of a component for a release build?

Thanks in advance for any tips or direction,

-Ed
 
A

Alan Pretre

Ed Sutton said:
In my top-level C# WinForms application, I added references to some
components by browsing to the \bin\debug\*.dll of the desired component.
How can I make it use a debug build of a component for a debug build, and a
release build of a component for a release build?

We created a build tool that sets the references on the fly based on whether
it's debug or release. It's too bad VS doesn't allow you to separate them
out in the project.

-- Alan
 
R

Robert Jeppesen

Doesn't VS do this itself if you set a reference to a project instead of a dll?
 
A

Alan Pretre

Robert Jeppesen said:
Doesn't VS do this itself if you set a reference to a project instead of a
dll?

Project references are OK. The problem will come with references to foreign
assemblies (those not built in your solution).

-- Alan
 

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