Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing a solution platform from Configuration Manager

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:

  1. 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... :/
  2. 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?

like image 433
demoncodemonkey Avatar asked Mar 16 '10 10:03

demoncodemonkey


People also ask

How do I change a platform target from x86 to a CPU?

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.

How do you exclude a project from solution build?

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.

How do I delete a configuration in Visual Studio?

Build->Configuration Manager ... The using the pulldown "Active solution configuration" and select "Edit ..." I can used the Edit Solution Configurations dialog to remove configurations.


1 Answers

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

  1. On the Build menu, click Configuration Manager.
  2. In the Active solution platform box, select <Edit>. The Edit Solution Platforms dialog box opens.
  3. Click the platform you want to remove, and click Remove.
like image 154
schoetbi Avatar answered Sep 19 '22 23:09

schoetbi