• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 749
  • Last Modified:

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?
0
dorenstein
Asked:
dorenstein
  • 4
  • 3
1 Solution
 
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
 
tiagosalgadoCommented:
See if this helps you http://forums.asp.net/t/1058036.aspx
 
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now