在Visual Studio 2010 Express中更改目标CPU设置 [英] Change target CPU settings in Visual Studio 2010 Express

查看:164
本文介绍了在Visual Studio 2010 Express中更改目标CPU设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在Visual Studio 2010中将目标CPU设置从任何CPU"更改为"x86".

I wish to change the target CPU settings from "Any CPU" to "x86" in Visual Studio 2010.

我在另一个网站上阅读到我需要做的以下事情:

I read on another website that I need to do the following:

  1. 转到程序的启动项目.
  2. 打开属性窗口.
  3. 单击编译"选项卡.
  4. 单击高级编译选项.
  5. 将目标CPU选项更改为x86.

但是我在属性中的任何地方都看不到编译"选项卡.

But I don't see the "compile" tab anywhere in the properties.

请尽快帮助我.

更新:我确实看到一个平台下拉列表,但是除了任何CPU"之外,该列表均不包含其他内容

之外均不包含任何内容.

.

推荐答案

我相信您在项目属性中看不到编译"选项卡的原因是因为您使用的是Express版本.此版本不正式支持针对特定CPU类型的优化.但是,您应该可以通过以下方式更改活动解决方案平台:

I believe the reason you don't see the Compile tab in the project properties is because you're using the Express edition. Optimization for a specific CPU type is not offically supported in this edition. However, you should be able to change the active solution platform in the following way:

从工具"菜单中,选择选项"项,然后在选项"对话框左侧的列表框中选择项目和解决方案"选项. (您可能必须先选中显示所有设置".)选中显示高级构建配置"框:

From the "Tools" menu, select the "Options" item, and then select the "Projects and Solutions" option in the listbox on the left-hand side of the Options dialog. (You might have to check "Show all settings" first.) Check the box that says "Show advanced build configurations":

然后,在构建"菜单上,查看是否有一个名为配置管理器"的项目.如果没有,则需要将项目添加到菜单中(右键单击工具栏上的任何区域,然后在列表底部选择自定义").

Then, on the "Build" menu, see if you have an item called "Configuration Manager". If not, you need to add the item to the menu (right-click on any area in the toolbar and choose "Customize" at the bottom of the list).

打开配置管理器"对话框后,转到活动解决方案平台"下拉框,然后选择新建".在出现的新解决方案平台"对话框中,您应该能够从第一个下拉框中选择"x86".

Once you've opened the Configuration Manager dialog, go to the "Active solution platform" drop-down box and choose "New". From the "New Solution Platform" dialog that appears, you should be able to choose "x86" from the first drop-down box.

或者,您似乎可以手动编辑项目文件以指定CPU类型.请参阅 在VB Express 2008 .看起来好像只是将第一个<PropertyGroup>部分下的<PlatformTarget>更改为"x86"一样.

Alternatively, it looks like you can manually edit the project file to specify the CPU type. See Changing the target CPU in VB Express 2008. It looks like it amounts to simply changing the <PlatformTarget> under the first <PropertyGroup> section to "x86".

这篇关于在Visual Studio 2010 Express中更改目标CPU设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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