[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Add Reference adds wrong version of dll

Posted on 2008-10-14
7
Medium Priority
?
748 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
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
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
LVL 8

Accepted Solution

by:
tiagosalgado earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline
Suggested Courses

834 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