Visual Studio 配置管理器仅 x64 选项 [英] Visual Studio Configuration Manager x64 only option

查看:72
本文介绍了Visual Studio 配置管理器仅 x64 选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于其他人来说,我似乎完全解决了*强调文本*相反的*强调文本*问题...我正在尝试让我的程序(C++/CLI - Visual Studio 2010)在任何机器上运行 - 但它只能在 64 位机器上运行......

I seem to have completely the *emphasized text*opposite*emphasized text* problem to everyone else... I'm trying to have my program (C++/CLI - Visual Studio 2010) run on any machine - but it's only working on 64 bit machines...

我检查了我的配置管理器,当我尝试选择一个新平台时,x64"是唯一存在的平台?

I checked my Configuration Manager and when I try and choose a new platform, "x64" is the only one that exists?

没有其他选择 - 我对想法有点困惑:(

There is no other option - and I'm a bit stuck for ideas :(

推荐答案

在配置管理器中,它为每个项目列出了平台(x86、x64 等).仅仅因为该项目在配置管理器中设置为某个平台,并不意味着该项目实际上针对该平台.

In the configuration manager, for each project it lists the Platform (x86, x64, etc.). Just because the project is set to a certain platform in the Configuration manager, doesn't mean the project is actually targeting that platform.

相反,在配置管理器中选择的平台意味着它将根据为该平台选择的构建设置构建该项目.因此,如果(对于给定的项目)在配置中选择了Any CPU",则需要转到该项目的构建设置(项目中的人民币->属性->构建)在顶部选择平台Any CPU"下拉以查看该平台的构建设置.然后,您会注意到下方有一个平台目标:"下拉菜单.是在您构建此配置/平台时决定目标平台的设置.

Instead, the platform selected in the configuration manager, means it will build that project according to the build settings selected for that platform. So, if (for a given project) in the configuration you have selected "Any CPU", you need to go to that project's build settings (RMB on project->Properties->Build) Choose the Platform "Any CPU" in the top drop down to see the build settings for that platform. Then, you'll notice lower down there is a "Platform target:" drop down. That is the setting that decides what platform is targeted when you build this Configuration/Platform.

所以您实际上可以设置它,以便在您使用任何 CPU"构建时,它正在构建面向 x64.

So you could actually set it up so that when you build using "Any CPU", that it is building targetting x64.

有意义吗?

这篇关于Visual Studio 配置管理器仅 x64 选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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