I have a solution in VS2008 containing C# and C++/CLI projects. There are 3 "solution platforms" in my solution:
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:
Any other ideas?
Select x86 in the Copy settings from drop-down list box. Click OK. In the Configuration Manager dialog, be sure the box in the Build column is checked for all projects in the solution. Click Close.
On the menu bar, choose Build > Configuration Manager. In the Project contexts table, locate the project you want to exclude from the build. In the Build column for the project, clear the check box. Choose the Close button, and then rebuild the solution.
Build->Configuration Manager ... The using the pulldown "Active solution configuration" and select "Edit ..." I can used the Edit Solution Configurations dialog to remove configurations.
See the msdn:
http://msdn.microsoft.com/en-us/library/ms165408.aspx
Removing a Platform If you realize that you have no need for a platform, you can remove it using the Configuration Manager dialog box. This will remove all solution and project settings that you configured for that combination of configuration and target. To remove a platform
- On the Build menu, click Configuration Manager.
- In the Active solution platform box, select <Edit>. The Edit Solution Platforms dialog box opens.
- Click the platform you want to remove, and click Remove.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With