Custom constants

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
Back
Top