title: How to use release dll in the release build, and debug dll in the debug build
body: <p>I have a winforms application that uses some self build components.<br>
  The self build components are in 2 dll's.
  Everythings works but when I build a release of the winforms project than the debug dll's are put in the \bin\release folder of the winforms project and not the release dll's.  </p>
  
  <p>I notice that in the references of the winforms project both dll's are added (by the designer of visual studio) and when I look at the properties they are pointing to the \bin\debug folder of the dll's.<br>
  That will be the reason why the debug dll's are put in the release folder of the winforms project.  </p>
  
  <p>So my question is, can I configure my project in visual studio so that when I do a debug build of the winforms project the debug dll's are put in the \bin\debug folder, and when I do a release build the release dll's are put in the \bin\release folder ?</p>
  
  <p>For now I copy the release builds of the dll's manually in the release folder before I deploy, but it would by nice if this could be done automatic.</p>
  
  <p><strong>EDIT : 
  to make things clear let me explain in another way my problem.</strong><br>
  When I do a RELEASE build of the winforms application than I get in BIN\RELEASE of the winforms application<br>
  1. a release build of my winforms executable<br>
  2. a debug build of the first dll<br>
  3. a debug build of the second dll  </p>
  
  <p>How to configure VS so it puts RELEASE builds of the dll's there</p>
  
  <p>EDIT : this is how my release configuration manager looks
  <a href="https://i.stack.imgur.com/nIFmj.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/nIFmj.jpg" alt="enter image description here"></a></p>
  
  <p>The winforms executable does goes to the te BIN\RELEASE folder, but it takes its DLL's from the BIN\DEBUG folders from the dll's instead of the BIN\RELEASE folder from the dll's.<br>
  The solution has 3 projects :<br>
  1. The winforms application<br>
  2 + 3 are the the projects for the dll's  </p>
  
  <p>EDIT :
  This is how I switch from DEBUG to RELEASE
  <a href="https://i.stack.imgur.com/q8dPN.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/q8dPN.jpg" alt="enter image description here"></a></p>