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
Solved

How do I stop a reference to an assembly being changed when adding another reference that also uses the already referenced assembly

Posted on 2004-09-06
3
188 Views
Last Modified: 2010-04-23
Environment: VB in VS2003 using Framework 1.1

To illustrate my problem: I have assemblies (dll) A, B and C.  Assembly A has a reference to C.  B also has a reference to C.  For debugging both A and B have their reference to D set to ‘copy local  = True’.

In my application I add a reference to assembly D.  When I add a reference to B or C I get a message that the reference to D has been changed.  The location of D is then changed to the bin of either B or C.  

The result of this is that the application is not working with the newest version of C but with the newest version of C in the bin folder of either A or B.  

I have removed the reference path in the application properties but this does not help as when you add the reference the path is also added automatically.

This is driving me nuts.  Is there any way of stopping VS from automatically adding the reference path to the project properties?  Is there another way of solving this problem?

Thanks
0
Comment
Question by:CyLex
3 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 500 total points
ID: 11988834
First add a reference of assembly D. Then try adding a reference of Assembly B and c
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 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