Solved

Add Reference adds wrong version of dll

Posted on 2008-10-14
7
741 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

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

Author Comment

by:dorenstein
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.
0
 
LVL 8

Expert Comment

by:tiagosalgado
ID: 22716492
See if this helps you http://forums.asp.net/t/1058036.aspx
 
0
DevOps Toolchain Recommendations

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

 
LVL 8

Accepted Solution

by:
tiagosalgado earned 500 total points
ID: 22716514
0
 

Author Comment

by:dorenstein
ID: 22716608
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
ID: 31506060
Thanks again.
0
 

Author Comment

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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