Reference non-GAC version of DLL in Visual Studio 2010

Posted by Eric J. on Stack Overflow See other posts from Stack Overflow or by Eric J.
Published on 2010-05-26T21:19:00Z Indexed on 2010/05/26 21:21 UTC
Read the original article Hit count: 297

Filed under:
|
|

This is similar to Add Non-GAC reference to project but the solutions presented there don't seem to help.

I have a WinForms UI Library (Krypton from ComponentFactory) installed in the GAC. There's a bug I want to track down in that library, so I added the source code to my solution, removed the old references from my WinForms project to Krypton DLLs, added them back as a project references, ensured Copy Local is set to true, double-checked that the path (on reference properties tab) points to my local project, and...

...the GAC version is still being used while debugging. I cannot set a breakpoint in the Krypton source, Debugger.Break() or other code changes to not execute, and when I start the Visual Studio 2010 debugger, I see a Loading from ... GAC_MISL message relating to the Krypton DLLs flash by in the VS 2010 status bar. The DLLs are not copied to the WinForm's Debug folder.

How can I reference the "project" version of the files while debugging while leaving them registered in the GAC?

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about reference