title: Resharper says I need to reference a dll, which is already referenced. code compiles ok
body: <p>I have a strange problem with resharper.</p>
  
  <p>I have a project file which is modified so that references are made by using an environment variable like so:</p>
  
  <pre><code>&lt;Reference Include="$(DllLocation)My.Companies.dll"&gt;
    &lt;Private&gt;false&lt;/Private&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>The project references another project, which also has the reference to the same dll in the same way.</p>
  
  <p>Resharper flags usages of the type from this dll as errors and says Module My.Companies.dll version blah pub key blah should be referenced. </p>
  
  <p>The projects compile fine.  If I modify both projects in the ide by removing the reference and then re-adding the reference to the same file, then the issues go away.</p>
  
  <p>Is there some workaround for this?  I'm using 3.1 and visual studio 2008, although 2005 has same issue.  I'd like to upgrade to 4.5, but not sure the company will pay for it yet.  Will I still have this issue in 4.5?  </p>