在VS2010中将目标更改为x86 [英] Change target to x86 in VS2010

查看:608
本文介绍了在VS2010中将目标更改为x86的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS2010解决方案,其中包含多个项目.这些项目是winforms应用程序和库.

I have a VS2010 solution with several projects in it. These projects are winforms apps and libraries.

现在,我必须将所有项目的平台从任何CPU更改为X86,但是我做不到,因为在我的某些项目中,它保持为任何CPU".在这些情况下,列表仅包含任何CPU".不可能更改它.

Now I MUST change platform for all projects to X86 from any CPU, but I can not do it, in some of my projects it stays 'Any CPU'. In these cases list contains only 'Any CPU'. It is impossible to change it.

可能是什么原因?我该如何解决?

What could be the reason of it? How should I fix it?

我读了一些疯狂的解决方案,例如在文本编辑器中打开sln文件,并将所有cpu字符串替换为X86等,但我希望有一个更直接,更简洁的解决方案.

I read some wild solutions, e.g. open sln file in text editor and replace any cpu strings to X86 etc, but I hope there is a more straightforward and cleaner solution.

谢谢!

VS2010/.net4/c#

VS2010/.net4/c#

推荐答案

如果只有Any CPU选项,则可以在选择平台时使用<New>...选项,并为x86平台创建新的平台设置,然后选择它.

If you only have the Any CPU option, you can use the <New>... option when choosing the platform and create a new platform setting for the x86 platform, and then choose it.

这篇关于在VS2010中将目标更改为x86的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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