none
Adding the reference of base class assembly RRS feed

  • Question

  • I have a question related to adding reference to project.
    Trying to explain it thru an example.
    1. I have "x.vb" class in "myCtrl.dll".
    2. "x.vb" inherits a class "Y". "Y" is in different assembly "myBaseCtrl.dll".
    3. When I add "myCtrol.dll" in the reference then how can I have "myBaseCtrl.dll" added to the reference automatically?
    Somesh Chandra
    Thursday, June 5, 2008 7:25 PM

Answers

  • Then the types in myCtrl.dll are actually exposed by myBaseCtrl.dll.  Just add a reference to myCtrl.dll as well.
    Hans Passant.
    • Marked as answer by Bruno Yu Wednesday, June 11, 2008 5:30 AM
    Friday, June 6, 2008 2:47 PM
    Moderator

All replies

  • You don't need a reference to myBaseCtrl.dll, only myCtrl.dll uses it and it's already compiled.  Why do you need this?
    Hans Passant.
    Thursday, June 5, 2008 11:34 PM
    Moderator
  • I thouht so. But the problem which I am facing is:
    My Form.Desginer.VB does not understand the properties and method of the control. Form does not even show up at design time. Once I add the base control also in the reference then there is no problem.
    I am working on framework 3.5

    Thanks
    Somesh Chandra
    Friday, June 6, 2008 2:04 PM
  • Then the types in myCtrl.dll are actually exposed by myBaseCtrl.dll.  Just add a reference to myCtrl.dll as well.
    Hans Passant.
    • Marked as answer by Bruno Yu Wednesday, June 11, 2008 5:30 AM
    Friday, June 6, 2008 2:47 PM
    Moderator