Solved

Add Reference adds wrong version of dll

Posted on 2008-10-14
7
732 Views
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?
0
Comment
Question by:dorenstein
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:tiagosalgado
Comment Utility
Try to remove the wrong reference, make a Clean Solution, and then add the right reference.
0
 

Author Comment

by:dorenstein
Comment Utility
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
 
LVL 8

Expert Comment

by:tiagosalgado
Comment Utility
See if this helps you http://forums.asp.net/t/1058036.aspx
 
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 8

Accepted Solution

by:
tiagosalgado earned 500 total points
Comment Utility
0
 

Author Comment

by:dorenstein
Comment Utility
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
 

Author Closing Comment

by:dorenstein
Comment Utility
Thanks again.
0
 

Author Comment

by:dorenstein
Comment Utility
(I meant your 3rd solution did the trick - the one at MS)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

10 Experts available now in Live!

Get 1:1 Help Now