Put DLL file to another location
-
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[^]
-
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[^]
Yes, it's possible. See this[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
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[^]
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