Change target to x86 in VS2010

≡放荡痞女 提交于 2019-12-02 03:14:36

问题


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

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?

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.

Thanks!

VS2010/.net4/c#


回答1:


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.



来源:https://stackoverflow.com/questions/6904529/change-target-to-x86-in-vs2010

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