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

  • Thread starter Thread starter Ed Sutton
  • Start date Start date
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
 
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
 
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
 
Back
Top