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. Should you put config files in the GAC with assemblies?

Should you put config files in the GAC with assemblies?

Scheduled Pinned Locked Moved C#
questiondotnet
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.
  • P Offline
    P Offline
    pliu_2000
    wrote on last edited by
    #1

    Hi, This is my first post here so please be gentle :-) I know it is possible to copy config files into the GAC such that an assembly can read from it based on its own location. This avoids having to partially hard code a location for the config file. However, is this good practice? What is the best approach for doing this? Thanks in advance :-D P

    S 1 Reply Last reply
    0
    • P pliu_2000

      Hi, This is my first post here so please be gentle :-) I know it is possible to copy config files into the GAC such that an assembly can read from it based on its own location. This avoids having to partially hard code a location for the config file. However, is this good practice? What is the best approach for doing this? Thanks in advance :-D P

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Really? I thought GAC stood for "Global *Assembly* Cache"? Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      P 1 Reply Last reply
      0
      • S S Senthil Kumar

        Really? I thought GAC stood for "Global *Assembly* Cache"? Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        P Offline
        P Offline
        pliu_2000
        wrote on last edited by
        #3

        <I though GAC stood for "Global *Assembly* Cache"?> Precisely my point, hence why I asked if this was good practice and if there was a "good" way of referencing configuration information from the GAC. If the only solution is to hard reference the config file then that is what I have to do. However, if there is another way, then I would really be interested. Btw - thanks for the reply ;) P.

        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