在 64 位系统上以 32 位方式运行 AnyCPU [英] Run AnyCPU as 32-bit on 64-bit systems
问题描述
我们正在使用似乎编译为 AnyCPU 的第三方程序集.
We are using a Third-Party assembly that seems to be compiled as AnyCPU.
但是,我们的应用程序有许多安装会导致问题.此第三方程序集使用了 oracle 数据访问库,并且不适用于仅安装了 32 位 oracle 客户端的 64 位计算机.
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.
安装额外的 64 位 oracle 客户端是可能的,但也很昂贵(需要很多时间,许多机器必须更新等)
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.)
有没有办法强制 AnyCPU .Net 程序集作为 32 位运行而无需重新编译?
Is there a way to force a AnyCPU .Net assembly to run as 32-bit without recompiling?
推荐答案
查看 CorFlags.exe.
示例(设置 32BIT 标志):
Example (set 32BIT flag):
corflags [path][YourAssembly.exe] /32Bit+
这篇关于在 64 位系统上以 32 位方式运行 AnyCPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!