G
Guest
Running into an issue where the compiler will throw an error...
"The type '<BaseClass>' is defined in an assembly that is not referenced.
You must add a reference to assembly '<BaseClass>'."
.... when using a derived class where the base class and the derived class
are compiled into separate assemblies. In this case we are attempting to
reference the derived class in a project and had assumed that the base class
assembly would automatically be referenced via the derived class's assembly.
This seems to defeat the purpose of inheritance in C#! Is it at all
possible to accomplish this without having to reference both the derived and
the base class? With only one base class and a single derived class it is
not that big a deal to reference both, but the idea behind doing this is that
we could have several derived class assemblies chained together. Having to
reference the entire chain in each assembly's project .... well you get the
idea.
Thanks
"The type '<BaseClass>' is defined in an assembly that is not referenced.
You must add a reference to assembly '<BaseClass>'."
.... when using a derived class where the base class and the derived class
are compiled into separate assemblies. In this case we are attempting to
reference the derived class in a project and had assumed that the base class
assembly would automatically be referenced via the derived class's assembly.
This seems to defeat the purpose of inheritance in C#! Is it at all
possible to accomplish this without having to reference both the derived and
the base class? With only one base class and a single derived class it is
not that big a deal to reference both, but the idea behind doing this is that
we could have several derived class assemblies chained together. Having to
reference the entire chain in each assembly's project .... well you get the
idea.
Thanks