I write programs used by our company. I have created several support libraries that I reference in many projects. (for example, a general data access assistant) Instead of having a copy of "datatools.dll" in each program directory (apparently this is the default behavior), I would like to have one copy that many programs can reference. Kinda, as my own system32 directory.
I have added a "Reference path" to my project. I am compiling a project and then a deployment project. The installer is working fine. Common DLLs are in my reference path. But when I run the program, I get the error "System.IO.FileNotFoundException: could not load the file or assembly" datatools.dll, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null "or one of its dependencies. The system cannot find the specified file. " If I transfer datatools.dll to the same folder as exe, the program works without problems.
Can I create and use shared space for shared dlls? Or is this just a bad idea?
source
share