How can I correctly reference a C# DLL that I don't have physical access to? (I actually have the DLL, just not all it's dependencies.)
Background:
On the target computer, there is a program and many interdependent dll files installed in C:\FancyProgram
.
I need to write a simple application that will be deployed on the target computer to C:\SimpleProgram
.
This simple program will need to make some calls into one of the dll files under C:\FancyProgram
. It is a .net managed DLL
On my development machine, I do not have a copy of FancyProgram
. I do have that one DLL file, but I do not have any of it's many dependencies. I also can not bundle that DLL into SimpleProgram
.
What is the correct method to use and reference this DLL in my Visual Studio project such that my SimpleProgram
will correctly compile but load the DLL at runtime from the correct location?
Thank you