How to set Compilation directives for windows phone 8.1 project ? If i add new configuration in configuration manager how it use in code? Because its not work. Example:
string myStringItem="";
#if MyFirstConfig
myStringItem="FirstString";
#endif
#if MySecondConfig
myStringItem="SecondString";
#endif
It does not work if I choose MyFirstConfig in the configuration manager, or if I choose MySecondConfig, does not work either. Why? How to do it correctly? Running last assignment, no matter what the chosen configuration. What to do?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.