I have a solution that looks like this:
Solution
- Parent project: C++/CLI with some native C++ mixed in
- Child project: C#, reference to the parent
The child project can reference a static class and method from the parent project and both projects compile fine.
However, when I try to run the child project, as soon as it tries to access that static method, the runtime crashes with a "FileNotFoundException":
I did some Googling and a lot of people say that this can happen if you're building one DLL in x86 and the other in ANY CPU or x64.
But I adjusted my build configuration and I'm still getting this problem. I'll admit that I find visual studio's build configuration GUI unbelievably confusing, so here's a screenshot:
So... Any clues as to what I need to do to get this working?