Custom constants

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J. van Herten

    #1

    Custom constants

    I want to use Custom constants to set several directives to use in the
    application.
    To do so I can use the Custom constants in the Build of the Configuration
    Properties.

    The settings I want is specificaly per customer. So customer one is using a
    download, then I set blnDownload = True. But customer two is not using
    download, then I set blnDownload = False.

    Question:
    How can I set my environment to customer one and my college his environment
    to customer two whithout changing the Custom constans in the Configuration
    Properties?
  • Jay B. Harlow [MVP - Outlook]

    #2
    Re: Custom constants

    J. van Herten,
    Have you tried to define multiple Configurations?

    Use "Build - Configuration Manager" then select "<New>" in the dropdown to
    create "Customer Download" and "Customer Non Download" configurations (you
    may want to consider 4 configurations, that varies both Download & Debug), I
    would create the configurations for both the solution & projects in the
    solution.

    In the Customer Download configuration set blnDownload = True.

    In the Customer Non Download configuration set blnDownload = False.

    Then you can select the Customer Download configuration & your colleague can
    select the Customer non Download configuration.

    Note: I would consider renaming or removing the standard Debug & Release
    configurations using "<edit>" dropdown in the "Build - Configuration
    Manager" to avoid confusion.

    Hope this helps
    Jay

    "J. van Herten" <J. van Herten@discussi ons.microsoft.c om> wrote in message
    news:DB92C60F-DDAA-4A2F-9AF8-C24DB8375D8D@mi crosoft.com...[color=blue]
    >I want to use Custom constants to set several directives to use in the
    > application.
    > To do so I can use the Custom constants in the Build of the Configuration
    > Properties.
    >
    > The settings I want is specificaly per customer. So customer one is using
    > a
    > download, then I set blnDownload = True. But customer two is not using
    > download, then I set blnDownload = False.
    >
    > Question:
    > How can I set my environment to customer one and my college his
    > environment
    > to customer two whithout changing the Custom constans in the Configuration
    > Properties?
    >[/color]


    Comment

    Working...