Visual Studio 2008 resolving wrong reference

Posted by e28Makaveli on Stack Overflow See other posts from Stack Overflow or by e28Makaveli
Published on 2009-10-23T18:21:53Z Indexed on 2010/04/28 22:27 UTC
Read the original article Hit count: 276

Filed under:

In my project file, I have the following entry:

<Reference Include="Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  <HintPath>..\..\..\..\Libraries\Microsoft.Practices.Unity.dll</HintPath>
</Reference>

which in absolute terms translates to:

C:\dev\LUT600 2.1.1\OCC600\Libraries

Somehow, when I try to compile the project, Visual Studio loads a reference from a totally different path:

/reference:"C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\Bin\Microsoft.Practices.Unity.dll.

How it resolves to this location is a complete mystery as this DLL is not referenced anywhere in this project.

I have set Specific Verion to true but it still resolves the reference from this location.

Any ideas?

TIA.

Klaus

© Stack Overflow or respective owner

Related posts about visual-studio