Given that project A is a C # class library and that project B is a console application that is dependent on project A.
Project A defines the following class:
public class ActionMailNotifier : RazorMailerBase { private readonly string _viewPath; private readonly EmailHost _emailConfig; ... ... }
"RazorMailBase" is contained in an external dll, ActionMailer.dll, referenced by project A.
Project B defines the following class:
public class EmailFareMonitorAlertNotifier : ActionMailNotifier { ... ... }
If ActionMailer.dll is not referenced in Project B, the compiler generates an error message indicating that a reference to ActionMailer.dll is required. Is there a way to structure this so that a link to an external dll is not required in Project B?
source share