compling组件在64位者平台的32位 [英] compling assemblies on a 64bit plaform for a 32bit

查看:166
本文介绍了compling组件在64位者平台的32位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该选择在64位者平台的32位平台服务器compliing组件什么选项。由于目前我想发布到32位服务器。我使用的是Windows Vista的计算机上VS2005建立我的项目,然后发布在服务器上,但我得到的错误。任何想法,我怎么能解决这个问题。

What option should I select for compliing assemblies on a 64bit plaform for a 32bit platform server. As currently I am trying to publish to a 32bit server. I am using VS2005 on a windows Vista machine to build my project and then publish on server but I am getting errors. Any idea how can I solve this problem.

我应该使用一个64位机或混合平台的选择上值为anycpu选项。同样的x86的选项被禁用,我不知道为什么。

Should I use AnyCPU option on a 64bit machine or Mixed Platform option. Also option of x86 is disabled and I dont know why.

推荐答案

假设你正在使用的管理语言,然后编译为值为anycpu'应该是跨平台(64/32位),因为生成的IL不变成了机器指令,直到运行时,code为即时编译。

Assuming you are working in a managed language, then compiling to 'AnyCPU' should be cross-platform (64/32 bit), because the generated IL is not turned into machine instructions until the code is JITted when it is run.

有极少数的例外,你可以,如果你使用依赖三分球的大小等,但这些一般不拿出你的code一定的结构得到位岬的依赖,但它不会伤害过你的code运行的FxCop以确保(存在于FxCop的一个部分处理的便携性,涵盖了这些问题)

There are a very few exceptions where you can get bit-ness dependencies if you use certain constructs that rely on the size of pointers, etc. but these generally do not come up in your code, although it would not hurt to run FxCop over your code to make sure (there is a section in FxCop dealing with portability that covers these issues)

这篇关于compling组件在64位者平台的32位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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