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. integrate app.config [modified]

integrate app.config [modified]

Scheduled Pinned Locked Moved C#
questioncomalgorithmstoolsworkspace
2 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.
  • G Offline
    G Offline
    Groulien
    wrote on last edited by
    #1

    Hello CP, I'm currently messing around to build a plugin system and want to use subfolders. After a bit of searching I found that adding a <probing privatepath=""/> element to app.config allowed subfolder usage.

    My only objection to this is that it is yet another file (one the user can edit :s) , my question is: Can I merge this configuration file with the exe or is there another way to do this? It would be preferable to put this in the manifest or something.

    The first rule of CListCtrl is you do not talk about CListCtrl - kornman

    modified on Sunday, August 28, 2011 11:13 AM

    J 1 Reply Last reply
    0
    • G Groulien

      Hello CP, I'm currently messing around to build a plugin system and want to use subfolders. After a bit of searching I found that adding a <probing privatepath=""/> element to app.config allowed subfolder usage.

      My only objection to this is that it is yet another file (one the user can edit :s) , my question is: Can I merge this configuration file with the exe or is there another way to do this? It would be preferable to put this in the manifest or something.

      The first rule of CListCtrl is you do not talk about CListCtrl - kornman

      modified on Sunday, August 28, 2011 11:13 AM

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      You can modify the configuration during runtime. However whether it uses it to pick up assemblies is a different point. Myself I don't see the utility. To create a plugin system you need to load from somewhere dynamically. That is the initial path. There isn't much point in having the framework (the loader) to provide options that require the plugin to follow a loading scheme that for most plugins shouldn't matter. So if the primary assembly is in director 'Bdir' then the plugin will probably have dependent assemblies in that directory and no other. And the standard assembly load mechanism will find those because the primary assembly was loaded from that. But further note that the point of configuration is specifically so that users can modify it. And a plugin system is pretty much by it very nature suggesting that users are going to be responsible for it. So either the system is simple to begin with or one must assume that the users are intelligent enough to deal with it.

      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