Visual Studio Configuration Manager x64 only option

亡梦爱人 提交于 2019-12-25 03:08:59

问题


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...

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 :(


回答1:


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.

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.

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

Make sense?



来源:https://stackoverflow.com/questions/5343814/visual-studio-configuration-manager-x64-only-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!