Home >Backend Development >C#.Net Tutorial >Detailed introduction to conditional compilation

Detailed introduction to conditional compilation

巴扎黑
巴扎黑Original
2017-06-11 14:19:471695browse

Conditional compilation is something that C# has more than Java, but after I asked my seniors for advice, they all said that conditional compilation is not used very much in actual project development. The following is just a record of the steps, for those who need it You can refer to it. Step 1: Create a new solution configuration in the configuration manager. Step 2: Define conditional compilation symbols: Step 3: Use custom conditional compilation #if CustomDebug in the code. Console.WriteLine("dsads"); #endif

1. Simple record of C# conditional compilation (detailed graphic and text explanation)

Detailed introduction to conditional compilation

Introduction: Conditional compilation is something that C# has more than Java, but after I asked my seniors for advice, they all said that conditional compilation is not often used in actual project development. The following is just a record of the steps. Friends in need can refer to it.

2. PWP update log, 2016-4-09 mazda 6 2016 jan 6 2016 surface 4 201

Introduction: 2016,6-4: PWP update log, 2016-4-09: 2016.4.09 updated to version V1.2, build(1193) fixed and updated the following issues: ----------- ------------------------------------------------1. Improved the linux version Running speed. It can already be used in actual environments. 2. Added conditional compilation tags, including pwp, debug, win32, win65, linux32, linux64

3. [Question] Does PHP support conditional compilation

Introduction: [Question] Does php support conditional compilation?

4. Conditional compilation of php under linux enables php to operate larger than 2g file (32-bit system), how to solve it

Introduction: Conditionally compiling php under linux allows php to operate files larger than 2g (32-bit system). I saw some online It is said that you can compile PHP with compilation options and add certain parameters, and then you can operate files larger than 2g. However, I looked at it for a long time and compiled it for a long time, but it still didn't work. Please help me, the immortals ------Solution-------------------- ini_set ('memory_limit', '2048M') ; Just expand the memory

5. [Related questions] Does php support conditional compilation

Introduction: [Question] Does PHP support conditional compilation? New to PHP, does PHP support conditional compilation like #if 0#else#endif? I tried it but it didn't work. I want to know if PHP has response syntax that supports this kind of solution------Solution------------------#Is this what you are referring to? if(0){...}else{...}------Solution--------------------Not supported! # In

6. Conditionally compile php under linux so that php can operate files larger than 2g (32-bit system), how to solve it

Introduction: Conditionally compiling PHP under Linux enables PHP to operate files larger than 2g (32-bit system). I saw some online saying that you can compile PHP with certain parameters through compilation options, and then you can operate files larger than 2g. But I looked at it for a long time and compiled it for a long time, but it still didn't work. Please help the immortals------Solution--------------------ini_set ('memory_limit', '2048M') ; Just expand the memory,

7. Conditional compilation of jscript/javascript in IE_javascript skills

Introduction: jscript/javascript in IE Conditional compilation

8. Conditional compilation of JScript_javascript skills

Introduction: Conditional compilation of JScript

9. Detailed explanation of conditional comments in JScript_javascript skills

Introduction: This article mainly introduces the conditions in JScript Detailed explanation of comments. This article explains @cc_on, @if, @set, @_win32, @_win16, @_mac and other conditional comment statements and predefined variables that can be used for conditional compilation. Friends in need can refer to the following

【Related Q&A recommendations】:

objective-c - To adapt to iOS7, a classification is made for WKWebView, and then another class uses the method in the classification. What should be done to adapt to iOS7 and below systems?

g++ - c++ conditional compilation error. ‘Mytime’ has not been declared.

c++ - How are static functions in C language usually unit tested? Shouldn't static functions be regarded as the smallest unit of testing? Or use conditional compilation?

linux - Rust: Using conditional compilation when testing, how to enable a test by default and turn it off after passing in a feature?

javascript - Conditional compilation in uglify-js (node.js)

The above is the detailed content of Detailed introduction to conditional compilation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn