简体   繁体   中英

How to set Compilation directives for windows phone 8.1 project?

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?

You can edit them in your Build settings in each project.

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM