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

With a project opened, go to Build – Configuration Manager to follow along.

A solution configuration is just the collection of all its projects’ configurations.  For example, let’s suppose we’re working with a solution that contains 2 projects.  Each project will have its own configuration, whether it is debug or release or something new you’ve created.  Each of these gets rolled-up into the solution configuration.  By default, the “Release” solution configuration contains all “Release” project configurations, whereas the “Debug” solution configuration consists of “Debug” project configurations.  There’s nothing keeping you from changing each of the project configurations under the “Debug” solution configuration to “Release”, except for the sanity of those working with you on the project.  =)

Today I was given a great example explaining all of this using a time-bomb release (thanks Izzy!)  In your VB Console App project (I’m just going with this sort of project for example purposes), first create a new project configuration called “TIMEBOMB” from the configuration manager (Just select <New> in the Project Configurations drop down).  Notice how this changes the active solution configuration to “TIMEBOMB”.  Now bring up project properties, click on the left-Compile tab, and change Configurations to TIMEBOMB.  Now press “Advanced Compile Options” (note: other language may have slightly different UI).  Select “Generate debug info:” to either pdb-only or full and add “TIMEBOMB” to the custom constants.  Press OK and then do a Save.

Go to Module1.vb and in Sub Main() add


   MsgBox("Evaluation time has expired. We now return you to your regularly scheduled Operating System, already in progress…")

#End If

Save, Hit F5, and watch your timebomb go off perfectly.  If you were to go back to configuration manager and change the active solution configuration to something else, like Release, you won’t see the timebomb.

In Part 2, I’ll cover Active Solution Platforms.

Happy Visual Studio’ing!

Comments (5)
  1. Mike Dunn says:

    I don’t mean to start a "VC6 is better" thread here, but the project/solution system was what confused me the most going from VC6 to 7.1. The part that I got stuck on was the fact that there are two things (projects and solutions) called "debug" and "release" listed in the Config Manager dialog with no explanation of the difference.

  2. saraford says:

    I have to agree that it is confusing how the Configuration Manager works. In fact, i had the lead developer give me a detail walkthrough in his office. Once it is explained to you, it makes a lot more sense.

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

Comments are closed.

Skip to main content