Hello,
I have a control derived from a 3rd party control. My control sits in a
class library. I have an app referencing my class library. When I
compile the app, I'm told:
c:\pd\NET\Examples\AssRef\AssRef\bin\Debug\Mine.dl l Referenced class
'Mine.Fred' has base class or interface 'Theirs.Flintstone' defined in an
assembly that is not referenced. You must add a reference to assembly
'Theirs'.
Here's some code to reproduce the behaviour:
// main app
using System;
using Mine;
namespace AssRef
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Mine.Fred fred = new Fred();
}
}
}
// my class library
using System;
using Theirs;
namespace Mine
{
public class Fred : Theirs.Flintstone
{
public Fred()
{
}
}
}
// 3rd party control
using System;
namespace Theirs
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Flintstone
{
public Flintstone()
{
}
}
}
In VS.NET create 2 class libraries and a console app, when you build the
solution, you'll get this:
c:\pd\NET\Examples\AssRef\AssRef\bin\Debug\Mine.dl l Referenced class
'Mine.Fred' has base class or interface 'Theirs.Flintstone' defined in an
assembly that is not referenced. You must add a reference to assembly
'Theirs'.
Why? "Mine" already has an explicit reference to the "Theirs" DLL.
Thanks for any help,
..pd.