Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:07:38+00:00 2026-06-02T00:07:38+00:00

I neeed to create multiple versions of my project using configuration just like we

  • 0

I neeed to create multiple versions of my project using configuration just like we do with #define, #if, #endif.

The down side of using these preprocessor directives is that I need to define symbols in almost every file of the project but I want to handle this thing by my build configurations.

I am not even sure if Build Configurations will help me to do this.

What I want is if I create a configuration with name “Development” and other with name “QA”, my code would look like:

if #Development or if $QA

Kindly guide me towards achieving this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:07:40+00:00Added an answer on June 2, 2026 at 12:07 am

    Configuration Manager exist for this reason.

    • Go to the Configuration Manager and create a New Configuration
      copying from the predefined DEBUG configuration
    • Name the configuration DEVELOPMENT and apply to all projects
    • Select as Active Configuration the DEVELOPMENT configuration (should already be the
      active one)
    • Go to the properties page of each project requiring #if DEVELOPMENT
      conditional compile and insert the DEVELOPMENT symbol in first textbox of the BUILD tab

    Now each of your projects can use the #if DEVELOPMENT preprocessor directive

    If you need this also for RELEASE repeat the above steps but copy from predefined RELEASE configuration and give a different NAME

    Now switching from a configuration with or without the DEVELOPMENT symbol defined could be done directly from the Solution Configurations combo Tool present in the Standard Toolbar of Visual Studio without editing each project.

    You can also view MSDN article How to: Create and Edit Configurations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting out with interface builder and I'd like to create a tabbed,
Why do I need to create Multiple SSPs in MOSS? My manager (sharepoint administrator)
I'm new to GUI programming, but need to create a multiple window GUI. Does
I`v come across a need where I want to create multiple list items from
I need to create an ASN.1 BER encoded file with multiple records. I've been
In Eclipse it is possible to create launch configurations in a project, specifying the
Is it possible to combine multiple PHP files via the command line and create
We need to create an installer for our application. Currently we are using Install
I have a simple project created in Qt Creator (installed using Qt SDK 1.1.4).
We are using Eclipse (Galileo) to create some custom BIRT reports (version 2.5) for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.