473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Question about References

Lets say I have 3 projects

ProjectC defines an interface MyInterface

ProtectB defines a class MyClass that implements ProjectC's
MyInterface. ProjectB references ProjectC.

ProjectA uses ProjectB's MyClass and has a reference to ProjectB.

Does ProjectA also need a reference to ProjectC?

I would think "no" because ProjectA never uses anything from ProjectC
(never uses the interface MyInterface). But on a project I am working
with it complains about this sometimes.


Now... it gets even weirder............................
Using my example from above, if I compile ProjectB and reference it
from ProjectA then ProjectA will not compile. (It complains that I
need a ref to projectC)

However, if I add another project to the solution with ProjectA (lets
say ProjectZ) and add a reference from ProjectZ to ProjectC, then
ProjectA will compile just fine, even though there is no relationship
between ProjectA and ProjectZ, they are just 2 projects in the same
solution.

So at this point ProjectA only has a reference to ProjectB, but it is
able to compile so long as some other project in the solution has a
reference to ProjectC.

After doing this I can even remove ProjectZ from the solution and
ProjectA will continue to build fine, but if close VS.Net and reload
ProjectA, then I can't build it once again.
Does this make any sense?

Apr 3 '06 #1
0 772

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Krist | last post by:
Hi All, There is some additional info I forget on this same topic I just posted. I have a database design question, pls give me some help.. I want to define tables for salesman's sales target...
3
by: deancoo | last post by:
If I have a container, say a vector, with 5 elements, and I initialize iterator variables to point to the beginning and end of the container, are those iterators going to always be valid if I...
1
by: Tony Johansson | last post by:
Hello Experts! I reading a book called programming with design pattern revealed by Tomasz Muldner and here I read something that I don't understand completely. It says "A garbarage...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
4
by: Tiraman | last post by:
Hi , Problem description : I have 2 assemblies (A.dll And B.dll) . They are both under the GAC and they are both using the functions of each other . Each time that I m doing a change in...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
6
by: Tuomas Rannikko | last post by:
Hello, I'm currently writing a XML processor for the fun of it. There is something I don't understand in the spec though. I'm obviously missing something important. The spec states that both...
16
by: Nije Nego | last post by:
What is you favourite font family choice for pages with predominant text content? Which one is the most readable, with regards to body text <pand what for <h1>? I tend to use serif for <pand...
7
by: heddy | last post by:
I have an array of objects. When I use Array.Resize<T>(ref Object,int Newsize); and the newsize is smaller then what the array was previously, are the resources allocated to the objects that are...
35
by: rebeccatre | last post by:
hi can Variant archiving setTimout('.. capability be done without using it? :-)
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.