I am hitting the exception:
Unable to load DLL 'MyDll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
As the answer to Unable to load DLL (Module could not be found HRESULT: 0x8007007E) suggests, we want to keep the unmanaged dll in the current directory, together with all the managed dlls (and it is there). How can I, for debugging purposes, print the current directory that will be used to load the dll? Is it Directory.GetCurrentDirectory()
?