#114 – Creating a New Build Configuration

Visual Studio projects are created with two build configurations–Debug and Release.

You can also create your own build configurations.  You might do this if you wanted to easily be able to build with a particular symbol defined, which in turn triggers conditional compilation.

To create a configuration, click on the Configuration Manager… option in the configurations dropdown.  A manager window appears.

Click on the configuration dropdown at the left and select New.

Give the new configuration a name and select a configuration to copy from.  Click OK.

Close the configuration manager and open the project properties dialog.  You’ll see your new configuration listed in the configuration dropdown.

You can now define a symbol that exists only in this new configuration.

And then define code that gets compiled if the new symbol is defined.

    DoSomeLogging();   // To assist in debugging