Did you know… How the Configuration Manager works – Part 2

Now that you know the different between solution and project configurations, let’s move on to the solution and project platforms.  Once again a solution platform is just the collection of all its projects’ platforms.  If you want all of your projects to target x64 platforms, change the Active solution platform to “x64”, and all of the projects will change.  If you need a specific project to target a different platform, you can modify individual project platform changes. 

For example, you could have one project targeting Any CPU and another targeting x86.  When you build, you’ll see the following:

—— Build started: Project: ClassLibrary1, Configuration: Debug Any CPU ——
—— Build started: Project: ClassLibrary6, Configuration: Debug x86 ——

Batch Build

Now, let’s combine both sets of combinations (configuration and platform), using the above example, to see what all the possible build outcomes are.  For both ClassLibraries, we get

  • Debug | Any CPU
  • Debug | x86
  • Release | Any CPU
  • Release | x86

Both C# and J# support a “Batch Build” feature that allows you to select which combinations you want to build all at the same time.  To get to this dialog, just right-click on the Solution folder and choose Batch Build.

Batch Build Dialog illustrating the different combinations of solution and project configurations and platforms

Happy Visual Studio’ing!

Comments (3)
  1. Philip Hines says:

    Question: How do I create a new platform in the configuration manager?  I was able to open the configuration manager and under "Active Solution Platform", create a new platform.  Now I want to set specific settings for this platform.  I want to be able to set include directories specific to this platform and I want to be able to set other build settings (compiler location, environment variables, etc.) for this platform.  It doesn’t seem to let me do this, however.

    For example, when I open Tools->Options->Projects and Solutions->VC++ Directories

    Under "Platform", my new platform does not show up as I would expect it too.

    Is there any way to do this or any part of this?  Is there any plan to allow this?  I know that these kinds of things are set when you install the PocketPC SDK, but I am unable to find how to configure these things myself.  Any suggestions?


  2. Yeah, that&#39;s my attempt at humor for explaining &quot;simplified build configurations.&quot;&#160;

Comments are closed.

Skip to main content