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. Dll libraries

Dll libraries

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studio
3 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.
  • B Offline
    B Offline
    Blubbo
    wrote on last edited by
    #1

    Since that I have created about 15 separate libraries for the main exe, they are in the same folder as exe. I was thinking of putting those class libraries (DLLs) into a folder called "Libraries" in the main exe folder, so that the directory will look cleaner and organized. How can I do that so that the exe file can load libraries from "Libraries" folder? I'm using Visual Studio 2010 Premium.

    A L 2 Replies Last reply
    0
    • B Blubbo

      Since that I have created about 15 separate libraries for the main exe, they are in the same folder as exe. I was thinking of putting those class libraries (DLLs) into a folder called "Libraries" in the main exe folder, so that the directory will look cleaner and organized. How can I do that so that the exe file can load libraries from "Libraries" folder? I'm using Visual Studio 2010 Premium.

      A Offline
      A Offline
      Alan N
      wrote on last edited by
      #2

      To load an assembly from a specified subdirectory of the application's base directory requires a modification to the configuration file. e.g.

      <configuration>
      <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="Libraries"/>
      </assemblyBinding>
      </runtime>
      </configuration>

      See probing element[^] at msdn. The Assembly Fusion log viewer[^] will show all paths searched during assembly loading and is a useful tool to have running, especially if you make a mess of editing the config file. It's helped me out more than once! Alan.

      1 Reply Last reply
      0
      • B Blubbo

        Since that I have created about 15 separate libraries for the main exe, they are in the same folder as exe. I was thinking of putting those class libraries (DLLs) into a folder called "Libraries" in the main exe folder, so that the directory will look cleaner and organized. How can I do that so that the exe file can load libraries from "Libraries" folder? I'm using Visual Studio 2010 Premium.

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

        See http://msdn.microsoft.com/en-us/library/7d83bc18.aspx[^].

        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