Add Reference adds wrong version of dll

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?
dorensteinAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
tiagosalgadoCommented:
Try to remove the wrong reference, make a Clean Solution, and then add the right reference.
0
 
dorensteinAuthor Commented:
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.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
tiagosalgadoCommented:
See if this helps you http://forums.asp.net/t/1058036.aspx
 
0
 
dorensteinAuthor Commented:
tigolsado,

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!
0
 
dorensteinAuthor Commented:
Thanks again.
0
 
dorensteinAuthor Commented:
(I meant your 3rd solution did the trick - the one at MS)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.