You want an easy way to include or exclude portions of code in different versions of a project.
Define a compilation constant named VERSIONxyy, where x and yy are the project’s major and minor version numbers, respectively.
Custom compilation constants like this can be set on the Build tab of the Project Properties page.
#if VERSION110 || VERSION120 // Include code for version 1.10 and 1.20 here. // ... #endif