I use TAPIEx.Net in my application to connect to a TAPI-Driver. I compile my Application as AnyCPU. TAPIEx.Net has a x86 Version (TAPIEx.net.dll) and a x64 Version (TAPIex.net.x64.dll). For developing, I reference TAPIEx.net.x64.dll (because I develop in x64 Environment). But I am searching for the solution what I have to do, when a customer loads the application in 32bit-Environment?
Asked
Active
Viewed 42 times
0
-
Don't use AnyCPU. Explicitly build 32-bit and 64-bit versions of your app that include the correct library. Each user can then download the one they want. – user18387401 Jul 09 '22 at 11:08
-
https://stackoverflow.com/questions/11934570/change-c-sharp-dllimport-target-code-depending-on-x64-x86/11936113#11936113 – Hans Passant Jul 09 '22 at 11:30