Add Reference adds wrong version of dll

Posted on 2008-10-14
Last Modified: 2013-12-17
I have two versions of a dll that I've developed.  Both of these versions are visible in the object browser.   In the Add References Dialog .NET tab, only the first version is visible, but it is listed twice.  No matter how I select the second version (browsing or recent tab), the first version is always added to the project.  Also, I have several projects in a solution, and one of the projects has the newer version in its references.  The difference, I believe, is that the problem projects at one time had the older version as a reference and the one without the problem never did.  Any ideas?
Question by:dorenstein
  • 4
  • 3

Expert Comment

ID: 22715806
Try to remove the wrong reference, make a Clean Solution, and then add the right reference.

Author Comment

ID: 22716119
I tried your suggestion.  The double listing of the old vesion in the add references .NET tab is gone, in fact, it is not listed at all.  Otherwise, the same symptoms:  The old version is added even though I am asking for the new version.

Thanks anyway.

Expert Comment

ID: 22716492
See if this helps you
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Accepted Solution

tiagosalgado earned 500 total points
ID: 22716514

Author Comment

ID: 22716608

Many Thanks.  Your second solution did the trick (I was afraid to try the first).  Interestingly, I only had to change one incidence of the bad reference, and it fixed the references in the other projects!

Author Closing Comment

ID: 31506060
Thanks again.

Author Comment

ID: 22716630
(I meant your 3rd solution did the trick - the one at MS)

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with WinAPI Signatures in VB.NET for SetWindowSubclass 2 35 mvc input file 2 32
Two different visual studio versions 3 23
SQL Login 17 40
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: (…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now