Run AnyCPU as 32-bit on 64-bit systems

We are using a third-party assembly that seems to compile as AnyCPU.

However, we have a number of installations of our application, where this leads to problems. This third-party build uses the oracle data library and will not work on 64-bit machines where only the 32-bit oracle client is installed.

Installing an additional 64-bit oracle client will be possible, but also expensive (it takes a lot of time, many machines need to be updated, etc.)

Is there any way to make the AnyCPU.Net assembly run as 32-bit without recompiling?

+5
source share
2 answers

Take a look at CorFlags.exe .

Example (set 32BIT flag):

corflags [path]\[YourAssembly.exe] /32Bit+
+5

, .EXE, AnyCPU, x86. AnyCPU, x86, 32- 32-, 64- Windows.

+5

All Articles