Run AnyCPU as 32-bit on 64-bit systems
.net, 32bit-64bit
Solution
Have a look at CorFlags.exe.
Example (set 32BIT flag):
corflags [path]\[YourAssembly.exe] /32Bit+
Problem
We are using a Third-Party assembly that seems to be compiled as AnyCPU. However, we have a number of installations of our application where this leads to problems. This Third-Party assembly makes use of the oracle dataaccess library, and will not work on 64-bit machines where only a 32-bit oracle client is installed. Installing a additional 64-bit oracle client would be possible, but also expensive (takes a lot of time, many machines have to be updated etc.) Is there a way to force a AnyCPU .Net assembly to run as 32-bit without recompiling?