Removing a platform from Configuration Manager

Posted by demoncodemonkey on Stack Overflow See other posts from Stack Overflow or by demoncodemonkey
Published on 2010-03-16T10:23:49Z Indexed on 2010/03/16 10:26 UTC
Read the original article Hit count: 363

I have a solution containing C# and C++/CLI projects. There are 3 platforms in my solution:

  • Any CPU
  • Win32
  • Mixed Platforms

I never want to "just build the C# ones" or "just build the C++ ones", I always want to build all projects. So the platforms metaphor is meaningless to me, I'll leave it on Mixed Platforms or whatever as long as they all build.

Now VS sometimes automatically switches the current platform to Any CPU (I'm not sure when or why). This means that pressing F7 will only try to build the C# projects, which is obviously no good. So I have to switch back to Mixed Platforms and try again.

So how to workaround this irritating problem? I have tried 2 ways:

  1. In Configuration Manager, remove Any CPU and Win32 platforms. This worked until I added a new project and Visual Studio very kindly added them back in... :/
  2. In Configuration Manager, check all checkboxes for all projects in all configurations in all platforms. This becomes a nightmare to manage with many projects in the solution.

Any other ideas?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about configuration-manager