Visual Studio 配置管理器仅限 x64 选项
我似乎对其他人完全有*强调文本*相反*强调文本*问题...... 我试图让我的程序(C++/CLI - Visual Studio 2010)在任何机器上运行 - 但它只能在 64 位机器上运行...
我检查了我的配置管理器,当我尝试选择一个新平台时,“x64 “是唯一存在的吗?
没有其他选择 - 而且我有点找不到想法:(
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 :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在配置管理器中,它列出了每个项目的平台(x86、x64 等)。仅仅因为项目在配置管理器中设置为某个平台,并不意味着该项目实际上针对该平台。
相反,在配置管理器中选择的平台意味着它将根据为该平台选择的构建设置来构建该项目。因此,如果(对于给定项目)在配置中选择了“任何 CPU”,则需要转到该项目的构建设置(项目上的人民币 -> 属性 -> 构建)在中选择平台“任何 CPU”顶部下拉菜单可查看该平台的构建设置。然后,您会注意到下方有一个“平台目标:”下拉菜单。 这是决定构建此配置/平台时所针对的平台的设置。
因此,您实际上可以对其进行设置,以便当您使用“任何 CPU”进行构建时,它会针对 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.
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?