I have added a DLL “first.dll” as reference in my C# project which in turns uses another legacy DLL “second.dll”
The “first.dll” expects “second.dll” to be in same folder. If I move “second.dll” to another folder then “first.dll” gives error.
Is there a way I can define “second.dll” path in my application?
I don’t have access to source code of both DLLs.
I solved it by picking DLL based on what program is needed. A simple IF condition did the trick.