在64位系统上以32位运行AnyCPU [英] Run AnyCPU as 32-bit on 64-bit systems

查看:260
本文介绍了在64位系统上以32位运行AnyCPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用一个第三方程序集,该程序集似乎已编译为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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆