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> | |
<NetFrameworkVersionNum>$(TargetFrameworkVersion.Replace("v", "").Replace(".", ""))</NetFrameworkVersionNum> | |
<!--Add an extra 0 if the version number is 40 or 45 so it can be compared to 401--> | |
<NetFrameworkVersionNum Condition="$(NetFrameworkVersionNum.Length) < 3">$(TargetFrameworkVersion.Replace("v", "").Replace(".", ""))0</NetFrameworkVersionNum> | |
<!--Don't define your own NET constants - this file will do it for you--> | |
<Error Condition=" $(DefineConstants.Contains('NET'))">Don't define your own NET constants</Error> | |
<!--Create a version to use with constants NET40, NET401 etc.--> | |
<NetFrameworkVersion Condition=" !$(DefineConstants.Contains(';NET')) ">$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</NetFrameworkVersion> | |
<DefineConstants Condition=" !$(DefineConstants.Contains(';NET')) ">$(DefineConstants);$(NetFrameworkVersion)</DefineConstants> | |
<!--Define the OR_GREATER constants--> |