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 ——
<snip>
—— Build started: Project: ClassLibrary6, Configuration: Debug x86 ——
<snip>
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.
Happy Visual Studio’ing!
Comments
Anonymous
August 06, 2006
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?
Thanks!Anonymous
March 04, 2008
Yeah, that's my attempt at humor for explaining "simplified build configurations." Anonymous
May 26, 2009
PingBack from http://castironbakeware.info/story.php?title=sara-ford-s-weblog-did-you-know-how-the-configuration-manager