简体   繁体   English

强制C#应用程序在64位服务器上以32位模式运行

[英]Force a C# Application to run in 32bit mode on a 64bit server

A client of ours is running an old version of our software which was built with "Any CPU" targeted. 我们的客户正在运行我们软件的旧版本,该版本是以“任何CPU”为目标构建的。 The software uses the Microsoft Tablet SDK which is a 32bit only application. 该软件使用Microsoft Tablet SDK,这是一个仅32位的应用程序。

They are attempting to install this on a 64 bit pc and obviously having issues because of the 32bit SDK not being visible to our software running in 64bit mode. 他们试图在64位PC上安装它,显然有问题,因为我们的软件在64位模式下运行时看不到32位SDK。

Rebuilding their version of the software is not an option (source control screwup) but they are planning an upgrade in the future. 重建他们的软件版本不是一个选项(源控制搞砸),但他们计划在未来进行升级。

So i need a temporary workaround to force this application to run in 32 bit mode. 所以我需要一个临时的解决方法来强制此应用程序以32位模式运行。

I've tried launching it from a 32bit command prompt but this still runs it in 64bit mode. 我尝试从32位命令提示符启动它,但仍然以64位模式运行它。

Any ideas? 有任何想法吗?

尝试使用CorFlags.exe工具 ,强制以32位模式加载程序集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM