Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Probblem with refrencing DLLs

Probblem with refrencing DLLs

Scheduled Pinned Locked Moved C#
csharpquestioncom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CWIZO
    wrote on last edited by
    #1

    Hi all, I have created a simple plugin manager (I got some ideas from: http://www.codeproject.com/csharp/PluginsInCSharp.asp) So when I compile I get 3 dll's: PluginManager.dll :: this one contains all the code for loading and storing the plugins IPlugin.dll :: interface which plugin's must implement in order to work IPluginHost.dll :: this one contains one interface, and this dll must be made for every project, as there are programm speciffic method in it (see article). The PluginManager.dll refrences IPlugin and IPluginHost, and the IPlugin refrences IPLuginHost. And I would liek to make things easier for use, so you would only have to compile IPluginHost.dll if you would liek to expose some methods to plugins. So how can I make that the PluginManager.dll and IPlugin.dll will refrence the IPluginHost.dll at run-time, knowing that the DLL wil always have the name IPluginHost.dll and that it will be in the same irectory. If I could do this, then I could just refrence PluginManager.dll and IPlugin.dll in my project copy them in my app dir, make a IPluginHost.dll compile it put-it into my app dir and the other two would use it. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

    H 1 Reply Last reply
    0
    • C CWIZO

      Hi all, I have created a simple plugin manager (I got some ideas from: http://www.codeproject.com/csharp/PluginsInCSharp.asp) So when I compile I get 3 dll's: PluginManager.dll :: this one contains all the code for loading and storing the plugins IPlugin.dll :: interface which plugin's must implement in order to work IPluginHost.dll :: this one contains one interface, and this dll must be made for every project, as there are programm speciffic method in it (see article). The PluginManager.dll refrences IPlugin and IPluginHost, and the IPlugin refrences IPLuginHost. And I would liek to make things easier for use, so you would only have to compile IPluginHost.dll if you would liek to expose some methods to plugins. So how can I make that the PluginManager.dll and IPlugin.dll will refrence the IPluginHost.dll at run-time, knowing that the DLL wil always have the name IPluginHost.dll and that it will be in the same irectory. If I could do this, then I could just refrence PluginManager.dll and IPlugin.dll in my project copy them in my app dir, make a IPluginHost.dll compile it put-it into my app dir and the other two would use it. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      First, read How the Runtime Locates Assemblies[^] in the .NET Framework SDK. When developing your application, it makes it much easier if you make project references instead of assembly references for projects in your solution. So, when you right-click on your project that requires the dependencies in your solution, click Add Reference then select the Project tab. Add your project(s). This makes sure that your project is always up-to-date with the latest assemblies (since it sets up dependencies on the build order) and that whenever you switch between build configurations (like Debug and Release, which are created by default) that all the project assemblies are of that build.

      Microsoft MVP, Visual C# My Articles

      C 1 Reply Last reply
      0
      • H Heath Stewart

        First, read How the Runtime Locates Assemblies[^] in the .NET Framework SDK. When developing your application, it makes it much easier if you make project references instead of assembly references for projects in your solution. So, when you right-click on your project that requires the dependencies in your solution, click Add Reference then select the Project tab. Add your project(s). This makes sure that your project is always up-to-date with the latest assemblies (since it sets up dependencies on the build order) and that whenever you switch between build configurations (like Debug and Release, which are created by default) that all the project assemblies are of that build.

        Microsoft MVP, Visual C# My Articles

        C Offline
        C Offline
        CWIZO
        wrote on last edited by
        #3

        Thanx for the link, I will check it out. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups