I have a solution in VS2008 containing C# and C++/CLI projects. There are 3 "solution 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 solution 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 solution 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:
- In Configuration Manager, remove the Any CPU and Win32 solution platforms. This worked until I added a new project and Visual Studio very kindly added them back in… :/
- In Configuration Manager, check all checkboxes for all projects in all configurations in all solution platforms. This becomes a nightmare to manage with many projects in the solution.
Any other ideas?
Best Answer
See the msdn:
http://msdn.microsoft.com/en-us/library/ms165408.aspx