Fairly simple question I'm hoping but I've not managed to find an answer yet on Google that works...
I'm working in a C# testing context, and am referencing a managed C++ DLL which then references normal C++ assemblies. When I try to run my test I get a FileNotFoundException that doesn't give me any details on the file it was unable to find.
System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I've done some checking with ProcMon and found it's trying to load up one of the C++ DLL's but it's probing all the standard places (C:\Windows, C:\Windows\System etc..). Is there a way I can redirect this to include an additional folder where all our binaries are built to?
I'm guessing there's something on the AppDomain but I've not quite figured out which property to use, which will work.