目标平台,所有CPU或X86的区别 [英] Target Platform, All CPU or X86 difference

查看:211
本文介绍了目标平台,所有CPU或X86的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我很困惑应选择哪种目标平台设置,以使我的应用程序能够在所有计算机上运行,​​而不管处理器类型如何。我尝试了所有的CPU,但它在几台电脑上都无法运行。



谢谢

Hi All,
I am confused what setting of target platform should be chosen to enable my application to run on all computers, regardless of the processor type. I tried All CPU but it did not work on a few computers.

Thanks

推荐答案

这取决于根据您使用的解决方案类型。例如,如果要使用jet连接从C#使用Ms-Access数据库,那么您的应用程序必须是x86,因为驱动程序仅可用作x86。同样,如果使用适用于x64平台的特定程序集,则目标程序集必须为x64。 全部是一般化的,它指定应用程序可以在任何目标下运行。如果您的项目不依赖于特定于x86或x64的任何资源,则可以选择它。
It depends upon the type of solution you are using. For example if you want to use Ms-Access database from C# using jet connection, then your application has to be x86 as the driver is available only as x86. Similarly if you use a specific assembly that is meant for x64 platform then the target assembly must be x64. ''All'' is generalized which specifies that the application can be run under any target. It can be selected if your project is not dependent on any resources that is specific to either x86 or x64.


结帐:任何CPU Exes通常比他们的价值更麻烦 [ ^ ]。



一旦理解了设置的含义。在你的程序应该运行的操作系统配置下,你能想到的。如果你的程序依赖于某些需要一个或另一个目标配置的第三方库,你就没有选择将EXE设置为该目标配置。



干杯

Andi
Checkout this: AnyCPU Exes are usually more trouble than they''re worth[^].

Once you understand the meaning of the setting. make up xour mind under which OS configuration your program is supposed to work. If your program depends on some 3rd party libraries that require one or the other target confuguration, you have no choice to set the EXE to that target configuration.

Cheers
Andi


这篇关于目标平台,所有CPU或X86的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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