开发者

Visual Studio Configuration Manager x64 only option

I seem to have completely the *emphasized text*opposite*emphasized text* problem to everyone else... I'm trying to 开发者_C百科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 :(


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜