I am running a C# executable which was built with a reference to a .Net library. The .NetLibrary is a wrapper around a C++ library, which resides in another folder (separate folder from the .NetLibrary).
The C++ library is in /usr/local bin
The .Net library is in /projects/csharp/NetWrapperProj/bin/Debug
The executable is in /projects/csharp/testharness/bin/Debug
As you may have guessed from the paths, I am running .Net using mono on Linux (Ubuntu 10.0.4).
mono version 2.10.
How may I specify the required binaries to the executable – to avoid Unhandled Exception: System.IO.FileNotFoundException type exceptions being thrown?
Normally, the DLLs/Libraries need to be in the same directory as the executable. From the Mono website:
You can read more at the Mono website on how to remedy this problem.