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. Dynamic Assemblies

Dynamic Assemblies

Scheduled Pinned Locked Moved C#
question
4 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, Does anyone know how i can load assemblies in my program at runtime or DLL's of managed code ? Ive seen a class in System.Reflection called Assembly but i am unsure if this is what im looking for. I am trying to create a plugin system for my program which scans a directory for DLL's and loads them up. The loading is the easy part, im just looking for a way to make my program aware that other assemblies exist and to load a default class supported by every assembly at runtime. Hope that makes sense. Any ideas on how i would go about this ? Cheers

    J J 2 Replies Last reply
    0
    • L Lost User

      Hi, Does anyone know how i can load assemblies in my program at runtime or DLL's of managed code ? Ive seen a class in System.Reflection called Assembly but i am unsure if this is what im looking for. I am trying to create a plugin system for my program which scans a directory for DLL's and loads them up. The loading is the easy part, im just looking for a way to make my program aware that other assemblies exist and to load a default class supported by every assembly at runtime. Hope that makes sense. Any ideas on how i would go about this ? Cheers

      J Offline
      J Offline
      Joao Vaz
      wrote on last edited by
      #2

      Hi, You have the System.Reflection.Assembly.Load method that accepts a assembly name or a assembly ref that does precisely what you want. Cheers, Joao Vaz

      1 Reply Last reply
      0
      • L Lost User

        Hi, Does anyone know how i can load assemblies in my program at runtime or DLL's of managed code ? Ive seen a class in System.Reflection called Assembly but i am unsure if this is what im looking for. I am trying to create a plugin system for my program which scans a directory for DLL's and loads them up. The loading is the easy part, im just looking for a way to make my program aware that other assemblies exist and to load a default class supported by every assembly at runtime. Hope that makes sense. Any ideas on how i would go about this ? Cheers

        J Offline
        J Offline
        James T Johnson
        wrote on last edited by
        #3

        I feel extremely bad about doing this, but I wrote a couple articles for CP that do just what you're looking for. Look for "TypeLoader for .NET" for some code you can plug in to your existing application, or look for "Using reflection to extend NET programs" to get a more in-depth look at what typeloader is doing. HTH, James Sonork ID: 100.11138 - Hasaki

        L 1 Reply Last reply
        0
        • J James T Johnson

          I feel extremely bad about doing this, but I wrote a couple articles for CP that do just what you're looking for. Look for "TypeLoader for .NET" for some code you can plug in to your existing application, or look for "Using reflection to extend NET programs" to get a more in-depth look at what typeloader is doing. HTH, James Sonork ID: 100.11138 - Hasaki

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Cool this has really helped me alot, i have found one sample using google search engine. Are there any others that people can point me too cause a few examples would be better :) Thanks for your help anyway :)

          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