3

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#

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Tom
  • 3,899
  • 22
  • 78
  • 137
  • 1
    If you have only 'Only CPU', you can use option when chosing platform and create x86 setting, then choose it, does it also fail for some reason? – Marcin Deptuła Aug 01 '11 at 21:42
  • Great, I didn't know if I interpreted your question correctly. Glad I could help, I've allowed myself to put it as an asnwer :-). – Marcin Deptuła Aug 01 '11 at 21:48

1 Answers1

3

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.

Adam Miller
  • 767
  • 1
  • 9
  • 22
Marcin Deptuła
  • 11,789
  • 2
  • 33
  • 41