Assemblies and references

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jingles
    New Member
    • Mar 2008
    • 2

    Assemblies and references

    Hello,


    I have a C# application with many DLL's. The application implements a plugin architecture allowing another programmer to write a plug in and drop the resulting DLL into the "plugins" directory of my application. I am having some problems with the references of these DLL's. Currently, with certain DLL's, when I called Assembly.LoadFi le, then Assembly.GetExp ortedTypes on the loaded assembly, I get an error stating that the dependencies for this DLL cannot be found. The DLL it relies on is actually in the same directory, but because this directory is not the application root, it can't find them.

    I am pretty inexperienced with DLL stuff, is it possible to get my application to look in more than just the root directory for DLL's?


    Thanks in advance.
  • balame2004
    New Member
    • Mar 2008
    • 142

    #2
    Originally posted by jingles
    Hello,


    I have a C# application with many DLL's. The application implements a plugin architecture allowing another programmer to write a plug in and drop the resulting DLL into the "plugins" directory of my application. I am having some problems with the references of these DLL's. Currently, with certain DLL's, when I called Assembly.LoadFi le, then Assembly.GetExp ortedTypes on the loaded assembly, I get an error stating that the dependencies for this DLL cannot be found. The DLL it relies on is actually in the same directory, but because this directory is not the application root, it can't find them.

    I am pretty inexperienced with DLL stuff, is it possible to get my application to look in more than just the root directory for DLL's?


    Thanks in advance.
    Hello there,

    I think one or more depedent dlls are missing. Not only add the resulting dll in your application also add the dlls that are referred by the resulting dll and all the dlls should be copied to output directory(Refer ences - Click reference and set the property "Copy to Output Directory" to true).


    - Balaji U

    Comment

    • abhijitbkulkarni
      New Member
      • Jul 2008
      • 2

      #3
      Hello,

      I am also working on plugin based architecture for my plugins.


      Actually I want to do the following
      I have a main windows exe application in C# and have 2 plugin dlls say A and B.
      During the loading of exe application, I dynamically load the 2 plugins from the plugin directory. and they get loaded and i can call the classes of 2 plugins from main application exe.

      Now there is a third plugin C which is dependent on A for some objects and wish to create thosed from plugin c.

      May I know how have to implemented the design for intercommunicat ion of objects between plugins.

      Any help will be appreciated.

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Please read the Posting Guidelines.

        MODERATOR

        Comment

        Working...