Link to home
Start Free TrialLog in
Avatar of dorenstein
dorenstein

asked on

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?
Avatar of tiagosalgado
tiagosalgado
Flag of Portugal image

Try to remove the wrong reference, make a Clean Solution, and then add the right reference.
Avatar of dorenstein
dorenstein

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of tiagosalgado
tiagosalgado
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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!
Thanks again.
(I meant your 3rd solution did the trick - the one at MS)