title: Visual Studio: How to reference assemblies in Visual Studio?
body: <p>i have a debug and a release version of an assembly dll.</p>
  
  <p>They are sitting is directories on my computer. For other developers they are sitting in directories on their computer.</p>
  
  <p>For the debug version of the application i want to use the debug assembly. For the release version of the application i want to use the release assembly.</p>
  
  <p>That's the question.</p>
  
  <hr>
  
  <p>For those not paying attention, there are quite a few issues here. How to reference an assembly on my computer, which after the project is checked into source control becomes a valid path on someone elses computer.</p>
  
  <p>How to have the "References" node be per solution type (Debug, Release).</p>
  
  <p>i tried copying the debug assembly to </p>
  
  <pre><code>\bin\Debug
  </code></pre>
  
  <p>and the release assembly to </p>
  
  <pre><code>\bin\Release
  </code></pre>
  
  <p>and added the assembly dll's to source control in the</p>
  
  <p>\bin\Debug
     \bin\Release</p>
  
  <p>folders. Then i hope that the assembly would be found in the executable's folder.</p>
  
  <p>Problem with that is that other developer's machines get an error that the assembly dlls could not be overwritten - when CopyLocal is false.</p>