E
Edward Diener
I have a class Y in assembly B which is derived from a class Z in assembly
C. So I correctly add a reference to assembly C in assembly B, build
assembly B and everything builds fine. Now I create an assembly A which
refers to class Y in assembly B. So I add a reference in assembly A to
assembly B, and attempt to build. I get an error message, C3264, saying that
it could not find the type Z, and that it is in assembly C to which I have
no reference.
Is this a bug in VC++ 7.1 of VS .NET 2003 ? It is hard for me to believe
that referring to a type in an assembly means that I must also add a
reference not only to that type but to the assemblies which contain the base
class and/or interfaces of that type right up the hierarchy of all bases,
even when the assembly which has the type already has references to these
other assemblies. Is this really how .NET works ? Grrr !
C. So I correctly add a reference to assembly C in assembly B, build
assembly B and everything builds fine. Now I create an assembly A which
refers to class Y in assembly B. So I add a reference in assembly A to
assembly B, and attempt to build. I get an error message, C3264, saying that
it could not find the type Z, and that it is in assembly C to which I have
no reference.
Is this a bug in VC++ 7.1 of VS .NET 2003 ? It is hard for me to believe
that referring to a type in an assembly means that I must also add a
reference not only to that type but to the assemblies which contain the base
class and/or interfaces of that type right up the hierarchy of all bases,
even when the assembly which has the type already has references to these
other assemblies. Is this really how .NET works ? Grrr !