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. Put DLL file to another location

Put DLL file to another location

Scheduled Pinned Locked Moved C#
comtutorialquestion
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.
  • M Offline
    M Offline
    Midnight Ahri
    wrote on last edited by
    #1

    I always put component dll in Application.StartupPath so user is able to run the application. Is it possible to put it to another location to keep the application working? Example location:

    Application.StartupPath + @"\DLL\"

    Edit: I found this but I don't really understand it. http://stackoverflow.com/questions/2445556/c-sharp-putting-the-required-dlls-somewhere-other-than-the-root-of-the-output[^]

    D A 2 Replies Last reply
    0
    • M Midnight Ahri

      I always put component dll in Application.StartupPath so user is able to run the application. Is it possible to put it to another location to keep the application working? Example location:

      Application.StartupPath + @"\DLL\"

      Edit: I found this but I don't really understand it. http://stackoverflow.com/questions/2445556/c-sharp-putting-the-required-dlls-somewhere-other-than-the-root-of-the-output[^]

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Yes, it's possible. See this[^].

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      1 Reply Last reply
      0
      • M Midnight Ahri

        I always put component dll in Application.StartupPath so user is able to run the application. Is it possible to put it to another location to keep the application working? Example location:

        Application.StartupPath + @"\DLL\"

        Edit: I found this but I don't really understand it. http://stackoverflow.com/questions/2445556/c-sharp-putting-the-required-dlls-somewhere-other-than-the-root-of-the-output[^]

        A Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #3

        Absolutely yes. You can keep the dll anywhere you want including the GAC where it could be shared across many applications.

        Apps - Color Analyzer | Arctic | XKCD | Sound Meter | Speed Dial

        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