3

我正在尝试构建一个网站应用程序并将目标 CPU 指定为 x86 而不是 Any CPU。我在配置管理器中“活动解决方案平台:”下拉列表下的唯一选择是:“任何 CPU”、“编辑..”和“新建...”。

在“配置管理器”窗口的“项目上下文”部分,它列出了 3 列:“项目”、“配置”和“平台”。在“平台”栏下,我唯一的选择是“.Net”。当“活动解决方案配置”设置为“调试”时。

当“活动解决方案配置”设置为“发布”时,我可以在“平台”列下选择“.Net”或“任何 CPU”。

我正在使用 Visual Studio 2005 专业版。该网站以前是使用 Visual Studio .NET 构建的,最近使用 Visual Studio 2005 Professional Edition 升级向导进行了升级。

我需要专门针对 x86,因为项目中使用的组件仅与 x86 兼容。

4

2 回答 2

0

Asp.net code is run in the CLR( Common Language Runtime). It never compiles to a native x86-compatible binary, it compiles to a CIL(Common Intermediate Language) byte-code file, which gets run in the CLR.

CLR is an execution environment that is comparable to the Java Virtual Machine. Compiles once, and then it doesn't matter what kind of CPU you're running it on, as long as the platform has a Common Language Infrastructure interpreter (The Mono project is an open-source CLI interpreter, the CLR is Microsoft's CLI interpreter).

于 2011-02-10T01:51:22.057 回答
0

如果您在该框中选择“”选项,您可能会注意到,当新的提示框弹出并提供选择时,它会为您提供 x86 和 x64 选项。我知道它在我的身上。

我知道这比问题晚了大约 2 年,比最后一个答案晚了 1 年,但我认为应该将它发布给可能遇到它的其他人。

于 2012-06-07T20:21:33.597 回答