I have two .NET managed dlls that are platform dependent (x86/x64) for some reason. Both have the same public interfaces.
I need to reference them from AnyCPU project. But they cannot be simply loaded in runtime, since my code use interfaces those dlls expose.
Is it possible to create proxy dll that would represent an interface of those platform dependent libs compile time, and load dynamically in runtime platform specific dll for each platform and forward calls to it?
Seems like "Embedded Interop Types" feature looks similar to what I need, but its not a COM lib.
Is it feasible task or not? Please suggest anything may help.