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. How to place Assemblies or DLL's in a subfolder

How to place Assemblies or DLL's in a subfolder

Scheduled Pinned Locked Moved C#
tutorial
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.
  • E Offline
    E Offline
    earlgraham
    wrote on last edited by
    #1

    I would like our project DLL’s placed into a sub-folder(\plugins). But when I try to run the application, it can’t find them. In the reference paths, I added a relative search path (.\plugins) and tried a micro path ($(TargetPath\plugins)). Neither seems to work. Unless the dll is in the same directory, I get an exception. The exceptions are the same. Can’t find file. Thanks :((

    Programmer Glenn Earl Graham Austin, TX

    P 1 Reply Last reply
    0
    • E earlgraham

      I would like our project DLL’s placed into a sub-folder(\plugins). But when I try to run the application, it can’t find them. In the reference paths, I added a relative search path (.\plugins) and tried a micro path ($(TargetPath\plugins)). Neither seems to work. Unless the dll is in the same directory, I get an exception. The exceptions are the same. Can’t find file. Thanks :((

      Programmer Glenn Earl Graham Austin, TX

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      By default, your application looks for its assemblies in one directory, so the exe and the dlls should be in the same directory. If you want to do something different then you have to take over the whole lifecycle of the assembly. In other words, you need to look at Assembly.Load.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      E 1 Reply Last reply
      0
      • P Pete OHanlon

        By default, your application looks for its assemblies in one directory, so the exe and the dlls should be in the same directory. If you want to do something different then you have to take over the whole lifecycle of the assembly. In other words, you need to look at Assembly.Load.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        E Offline
        E Offline
        earlgraham
        wrote on last edited by
        #3

        After research I also found that you can give the X.exe an X.exe.config file that defines other sub-folders to search. This works for me. Thanks Glenn

        Programmer Glenn Earl Graham Austin, TX

        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