I have a C# program that uses an external opensource library that I downloaded from the internet, specifically openxml to create excel files. Now I want to run my executable files on computers that do not have this library installed.
I already know that I can have visual studios to make a copy of the library in either the debug or release folder by setting the copy local property to true, and I am doing this.
The problem is that now the executable file can be run on other computers and generate excel files, but the executable file has to be run in the debug or release folder where the library is saved.
When I try to copy the executable file and run it outside of the folder an exception is thrown telling me that the library cannot be found, how do I make it find the library when running the executable outside of the folder?
Thanks,
-Jake