Hi Juan,
I need to have a string's value depend on the
configuration of the assembly.
Is this possible?
I suggest you use the #if/#endif preprocessor directive to workaround this
requirement.
You can define the specified Conditional Compilation Constants(VS2003 IDE:
Project Property Pages/Configuration Properties/Build/Code Generation) for
each of your configuration. By default, the DEBUG is defined in the
project's Debug configuration:
#if DEBUG
string str = "DebugConfiguration";
#endif
#if Config1 ///define this compilation constant in the corresponding
project configuration's Conditional Compilation constants entry
string str = "Configuration1";
#endif
Please refer to the following MSDN documentation for the further
information:
2.5.4 Conditional compilation directives
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html
/vclrfcsharpspec_2_5_4.asp
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================