[英]Matching application in C# that built on 64-bit system to running on 32-bit system
我在具有64x位系统的计算机上开发了ac#程序,该程序完美运行,但是当我尝试在32x位系统上运行该程序时,出现错误:“此应用程序无法在您的PC上运行”,我需要更改或添加代码以使其匹配以在32x位系统上运行?
Change the Platform Target in the Visual Studio project settings to Any CPU
or x86
. 在Visual Studio项目设置中将Platform Target更改为
Any CPU
或x86
。
64-bit CPUs can run 32-bit (x86) programs, but the reverse is not true. 64位CPU可以运行32位(x86)程序,但事实并非如此。 Additionally, the Any CPU option allows the jitter on each individual machine to choose the best option for that machine.
此外,“任何CPU”选项允许每台计算机上的抖动为该计算机选择最佳选项。
However, you also need to check through any third-partly libraries in your application. 但是,您还需要检查应用程序中的所有第三方库。 If you took a dependency on a library or reference an assemply (dll) that is compiled for one specific platform, that will limit your options to what is supported by that assembly.
如果您依赖某个库或引用为一个特定平台编译的assemply(dll),那么您的选择将受到该程序集支持的限制。
Finally, make sure the target PC actually has the right version of the .Net Framework installed. 最后,确保目标PC确实安装了正确版本的.Net Framework。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.