title: How to add a proper reference to a dependency so that it works on everybody's machine (including a build server)?
body: <p>I am trying to setup an automatic test of my MVC4 application using <a href="https://code.google.com/p/ndbunit/" rel="nofollow">NDbUnit</a> in Jenkins. On my local machine I have references to <code>NDbUnit.core</code> and <code>NDbUnit.SqlClient</code> that I added in the solution explorer by clicking the References folder, then 'Add reference' and then adding them from disk. They work like a charm.</p>
  
  <p>However, when I commit the solution to the repository which triggers the automatic build on the Jenkins build server, the build fails. The error messages look like this for both files:</p>
  
  <pre><code>c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: 
  Could not resolve this reference. Could not locate the assembly "NDbUnit.Core". Check to make 
  sure the assembly exists on disk. If this reference is required by your code, you may get 
  compilation errors. [C:\Program Files (x86)\Jenkins\jobs\Project\workspace\Project\Project.csproj]
        For SearchPath "{HintPathFromItem}".
        Considered "..\packages\NDbUnit_1.6.7.0\NDbUnit.Core.dll", but it didn't exist.
  </code></pre>
  
  <p>When I make a fresh checkout and try to build the solution on my own machine, I get the same message that the reference could not be resolved. The two files are however in the References folder, they just don't work (unlike the others they have an exclamation mark symbol next to them). Only when I reference them from my own machine they work again.</p>
  
  <p>This madness has cost me a lot of points in the continuous integration game. I hope someone can explain to me how I can properly reference the <code>.dll</code>'s so that they work everywhere.</p>