Last active
December 21, 2015 15:19
-
-
Save kiwidev/6326238 to your computer and use it in GitHub Desktop.
Defining a preprocessor constant depending on version of Visual Studio... Put this after the standard DefineConstants definition inside project file (unload project, edit, reload project).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PropertyGroup Condition="'$(VisualStudioVersion)' == '10.0'"> | |
<DefineConstants>$(DefineConstants);VS_10;</DefineConstants> | |
</PropertyGroup> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once this is included the VS_10 preprocessor param is available. (So:
#if VS_10
// VS 2010 specific code
#endif