title: TFS build failing. Unresolved references to files that are in source control
body: <p>I have a build that works fine locally, however, will not build within our TFS environment.</p>
  
  <p>I get the following error;</p>
  
  <blockquote>
    <p>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets
    (1578): Could not resolve this reference. Could not locate the
    assembly "Assembly.Services.Common". Check to make sure the assembly exists
    on disk. If this reference is required by your code, you may get
    compilation errors.</p>
  </blockquote>
  
  <p>The assembly in question is checked into TFS and is in the following location;</p>
  
  <blockquote>
    <p>/Root/BaseBinRefs/Assembly.Services.Common.dll</p>
  </blockquote>
  
  <p>It does not have any external references outside of the .net framework.</p>
  
  <p>The project that is failing to build is in the following location in TFS</p>
  
  <blockquote>
    <p>/Root/Services/AssemblySolutionFolder/AssemblyThatIsFailing</p>
  </blockquote>
  
  <p>The assembly is referenced in a project within the solution and the HintPath to the assembly appear to be correct;</p>
  
  <pre><code>   &lt;Reference Include="Assembly.Services.Common, Version=1.0.0.0, 
        Culture=neutral, processorArchitecture=MSIL"&gt;
        &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt;
        &lt;HintPath&gt;..\..\..\BaseBinRefs\Assembly.Services.Common.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
  </code></pre>
  
  <p>As said, it builds locally and I can see no reason why it should fail within TFS. the caveat to that is that I am new to TFS in general and still trying to integrate the first of our projects into this environment.</p>
  
  <p><strong>Update 1</strong></p>
  
  <p>Using ProcessMonitor, I see TFS attempting to load the file from;</p>
  
  <p>C:\Builds\1\Root\BaseBinRefs\Assembly.Services.Common.dll</p>
  
  <p>Which does not exist, but is correct in the relative sense. Now, when I look in the Sources directory, I see BaseBinRefs, with Assembly.Services.Common.dll included, so it has downloaded them (I added the BaseBinRefs to the build definition)</p>