I make a program depending on some DLLs included in a third-party program. I am not allowed to distribute these DLLs myself. For my program to work, you need to install a third-party program.
How can I link to these dlls? I know their exact location through the registry key installed by the program.
I tried to add files in Project-> References and set CopyLocal to false, but when I started i, then get a FileNotFoundException "Could not load file or assembly."
I tried adding an event to AppDomain.CurrentDomain.AssemblyResolve and uploading the files there, but the problem is that I get an exception before my program even starts. Even if I set a breakpoint on the first line, an exception will be thrown before the breakpoint is removed.
source
share