In my web app I have to refer two third party assemblies, one is compiled for x86 and other is for x64. Both dlls are with same name and version.
For example:
Foo.dll --x86, used to get data from x86 machines
Foo.dll --x64, used to get data from x64 machines.
I have to refer these two dlls in web app. In my web app all other dlls are compiled with 'any CPU' option because my web app can be installed in any machine(x86 or x64).
In my web app if user tells to get data from ServerA (x86 machine) then my web app has to refer Foo.dll(x86) version to get data from x86 machines. if user tells to get data from ServerB (x64 machine) then my web app has to refer Foo.dll(x64) version to get data from x64 machines.
What is the best approach to address this issue?
I am working with VS2010. .NET 3.5