Solution configuration I now do is a performance test, only used in the debugging phase.Need to manually adjust the #define when deployed。
Whether can debug or release through solution configuration, to determine the #define code execution。
Through what way can, do not need to manually adjust the #define, to control code execution。
If I didn't describe clearly, please leave a message to tell me
"Need to manually adjust the #define when deployed"
You cannot do this. #define
statements are processed by the compiler.
There are a number of possible solutions to your problem depending on what it actually is.
You can create multiple build configurations with different code in the #define
blocks and deploy each configuration to test.
or
You can use feature switches, which is just a way to turn on and off bits of code depending on, for example, settings in a configuration file.
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.