I have a WinForms project that references to some library. In main() of that project I added
AppDomain.CurrentDomain.AssemblyResolve += MyResolveEventHandler;
but it catches only libraries that are called by the executable itself (this project). However this library that the project is referencing to is calling another library (via DllImport) and this "imported library" tries to find some libraries (can't say how as this imported library is unmanaged) but it can't locate them in PATH. I would like to give it an assembly path, but, as said above, the main() doesn't catch this event. How can I make it do?