Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
194 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 2000 total points
ID: 11988834
First add a reference of assembly D. Then try adding a reference of Assembly B and c
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

971 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