I have a pair of assemblies that implement the same functionality using two different backends:
Engine.OpenGL.dll
Engine.DirectX11.dll
Is it possible to create a single Visual Studio project that is capable of using any of these backends without recompiling? The namespaces/classes/methods exposed by both Engine DLLs are the same (or at least the ones I use in my project are the same).
I tried building my project against one of the Engine assemblies, and then replacing it with the other (by overwriting the dll file). This results in the following error:
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Do I have to create 2 separate projects with the only difference between them being which Engine DLL they reference?
Method CollisionI would suggest either fully qualifying the Method based on the assembly name orAliasthe assembly's in your using and qualifying them that way.. also you can't overwrite the Dll or rename once the application has been compiled.. it doesn't work that way..