Visual Studio的配置管理器的x64唯一的选择 [英] Visual Studio Configuration Manager x64 only option

查看:1071
本文介绍了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...

我查了一下我的配置管理器,当我尝试和选择一个新的平台,64是唯一一个存在?

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.

相反,在配置管理器中选择的平台,意味着它会根据选定为该平台构建设置构建项目。所以,如果(对于一个给定的项目)在配置上选择了任何CPU,你需要去到该项目的构建设置(人民币对项目 - >属性 - >编译)选择平台任何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,它正在建设目标定位64。

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天全站免登陆