-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVersionSpecificSymbols.Common.prop
200 lines (152 loc) · 50 KB
/
VersionSpecificSymbols.Common.prop
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!--
This file is part of Hawkynt's .NET Framework extensions.
Hawkynt's .NET Framework extensions are free software:
you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Hawkynt's .NET Framework extensions is distributed in the hope that
it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Hawkynt's .NET Framework extensions.
If not, see <http://www.gnu.org/licenses/>.
******************************************************************
Defines the Compile time symbols Microsoft forgot
Modelled from https://docs.microsoft.com/en-us/dotnet/standard/frameworks
To use this file, add a reference to it in the csproj project file
as the last line before </Project> like
<Import Project="..\..\VersionSpecificSymbols.Common.prop" />
*********************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- needed variable default values -->
<IsNetCore>false</IsNetCore>
<IsNetFramework>false</IsNetFramework>
<IsNetStandard>false</IsNetStandard>
<NetCoreVersion>0.0</NetCoreVersion>
<NetFrameworkVersion>0.0</NetFrameworkVersion>
<NetStandardVersion>0.0</NetStandardVersion>
<!-- set non default values dependend on compile settings -->
<IsNetCore Condition="$(TargetFramework.Contains(netcoreapp)) OR ($(TargetFramework.StartsWith(net)) AND !$(TargetFramework.StartsWith(netstandard)) AND !($(TargetFramework.StartsWith(net4)) OR $(TargetFramework.StartsWith(net3)) OR $(TargetFramework.StartsWith(net2)) OR $(TargetFramework.StartsWith(net1)) ))">true</IsNetCore>
<NetCoreVersion Condition="$(IsNetCore)">$(TargetFramework.Replace('netcoreapp','').Replace('net','').Split('-')[0])</NetCoreVersion>
<IsNetStandard Condition="$(TargetFramework.Contains(netstandard))">true</IsNetStandard>
<NetStandardVersion Condition="$(IsNetStandard)">$(TargetFramework.Replace('netstandard',''))</NetStandardVersion>
<IsNetFramework Condition="!$(IsNetCore) AND !$(IsNetStandard) AND ($(TargetFramework.StartsWith(net)) OR ('$(TargetFrameworkVersion)' != ''))">true</IsNetFramework>
<NetFrameworkVersion Condition="$(IsNetFramework) AND '$(TargetFramework)' != ''">$(TargetFramework.Substring(3,1)).$(TargetFramework.Substring(4))</NetFrameworkVersion>
<NetFrameworkVersion Condition="$(IsNetFramework) AND '$(TargetFrameworkVersion)' != ''">$(TargetFrameworkVersion.Substring(1))</NetFrameworkVersion>
<DefineConstants Condition="$(IsNetFramework)">$(DefineConstants);NETFRAMEWORK</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.8')))) >= 0">$(DefineConstants);NET48_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.7.2')))) >= 0">$(DefineConstants);NET472_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.7.1')))) >= 0">$(DefineConstants);NET471_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.7')))) >= 0">$(DefineConstants);NET47_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.6.2')))) >= 0">$(DefineConstants);NET462_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.6.1')))) >= 0">$(DefineConstants);NET461_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.6')))) >= 0">$(DefineConstants);NET46_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.5.2')))) >= 0">$(DefineConstants);NET452_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.5.1')))) >= 0">$(DefineConstants);NET451_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.5')))) >= 0">$(DefineConstants);NET45_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.0')))) >= 0">$(DefineConstants);NET40_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('3.5')))) >= 0">$(DefineConstants);NET35_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('2.0')))) >= 0">$(DefineConstants);NET20_OR_GREATER</DefineConstants>
<DefineConstants Condition="$(IsNetStandard)">$(DefineConstants);NETSTANDARD</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.0')))) >= 0">$(DefineConstants);NETSTANDARD1_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.1')))) >= 0">$(DefineConstants);NETSTANDARD1_1_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.2')))) >= 0">$(DefineConstants);NETSTANDARD1_2_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.3')))) >= 0">$(DefineConstants);NETSTANDARD1_3_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.4')))) >= 0">$(DefineConstants);NETSTANDARD1_4_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.5')))) >= 0">$(DefineConstants);NETSTANDARD1_5_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.6')))) >= 0">$(DefineConstants);NETSTANDARD1_6_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('2.0')))) >= 0">$(DefineConstants);NETSTANDARD2_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('2.1')))) >= 0">$(DefineConstants);NETSTANDARD2_1_OR_GREATER</DefineConstants>
<DefineConstants Condition="$(IsNetCore)">$(DefineConstants);NETCOREAPP</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('1.0')))) >= 0">$(DefineConstants);NETCOREAPP1_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('1.1')))) >= 0">$(DefineConstants);NETCOREAPP1_1_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('2.0')))) >= 0">$(DefineConstants);NETCOREAPP2_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('2.1')))) >= 0">$(DefineConstants);NETCOREAPP2_1_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('2.2')))) >= 0">$(DefineConstants);NETCOREAPP2_2_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('3.0')))) >= 0">$(DefineConstants);NETCOREAPP3_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('3.1')))) >= 0">$(DefineConstants);NETCOREAPP3_1_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('5.0')))) >= 0">$(DefineConstants);NET5_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('6.0')))) >= 0">$(DefineConstants);NET6_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('7.0')))) >= 0">$(DefineConstants);NET7_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('8.0')))) >= 0">$(DefineConstants);NET8_0_OR_GREATER</DefineConstants>
<DefineConstants Condition="$([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('9.0')))) >= 0">$(DefineConstants);NET9_0_OR_GREATER</DefineConstants>
<!-- enable optimizations based on configuration values -->
<DefineConstants Condition="'$(AllowUnsafeBlocks)' == 'true'">$(DefineConstants);UNSAFE</DefineConstants>
<DefineConstants Condition="'$(PlatformTarget)' == 'x86' OR '$(Prefer32Bit)' == 'true'">$(DefineConstants);PLATFORM_X86</DefineConstants>
<DefineConstants Condition="'$(PlatformTarget)' == 'x64' AND '$(Prefer32Bit)' != 'true'">$(DefineConstants);PLATFORM_X64</DefineConstants>
<DefineConstants Condition="'$(PlatformTarget)' == 'AnyCPU' OR '$(PlatformTarget)' == ''">$(DefineConstants);PLATFORM_ANYCPU</DefineConstants>
<!-- enable support compilation symbols -->
<!-- because the msbuild has problems when using newlines in "DefineConstants" sections and generates pseudo-warnings, I'll use lots of spaces and you should use word-wrap when editing in Notepad++ and the following line of spaces
-->
<!-- Framework 3.5 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('3.5')))) >= 0)">$(DefineConstants); SUPPORTS_ACTION_FUNC; SUPPORTS_HASHSET; SUPPORTS_LINQ; SUPPORTS_FIRSTLASTSINGLE_PREDICATE; SUPPORTS_EXTENSIONS; </DefineConstants>
<!-- Framework 4.0 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.0')))) >= 0)">$(DefineConstants); SUPPORTS_ACTION_FUNC_5; SUPPORTS_ASYNC; SUPPORTS_CONCURRENT_COLLECTIONS; SUPPORTS_CONDITIONAL_WEAK_TABLE; SUPPORTS_CONTRACTS; SUPPORTS_ENUMERATING_IO; SUPPORTS_HAS_FLAG; SUPPORTS_IS_NULL_OR_WHITESPACE; SUPPORTS_JOIN_ENUMERABLES; SUPPORTS_LINQ_PARAMETERS; SUPPORTS_PATH_COMBINE_ARRAYS; SUPPORTS_POINTER_ARITHMETIC; SUPPORTS_SLIM_SEMAPHORES; SUPPORTS_STOPWATCH_RESTART; SUPPORTS_STREAM_COPY; SUPPORTS_STRING_BUILDER_CLEAR; SUPPORTS_STRING_IS_NULL_OR_WHITESPACE; SUPPORTS_TIMESPAN_PROVIDER; SUPPORTS_TUPLES; NEEDS_RNG_DISPOSE; SUPPORTS_WAITHANDLE_DISPOSE; SUPPORTS_LAZY; SUPPORTS_ENUM_TRYPARSE; </DefineConstants>
<!-- Framework 4.5 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.5')))) >= 0)">$(DefineConstants); SUPPORTS_CALLER_MEMBER_NAME; SUPPORTS_DISPATCHER_LAMBDA; SUPPORTS_INLINING; SUPPORTS_METHODINFO_CREATEDELEGATE; SUPPORTS_READ_ONLY_COLLECTIONS; SUPPORTS_STREAM_ASYNC; SUPPORTS_WEBCLIENT_ASYNC; SUPPORTS_TASK_RUN; SUPPORTS_TASK_AWAITER; </DefineConstants>
<!-- Framework 4.6 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.6')))) >= 0)">$(DefineConstants); SUPPORTS_ARRAY_EMPTY; SUPPORTS_BUFFER_MEMORYCOPY; SUPPORTS_TO_UNIX_TIME_MILLISECONDS; </DefineConstants>
<!-- Framework 4.6.1 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.6.1')))) >= 0)">$(DefineConstants); </DefineConstants>
<!-- Framework 4.6.2 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.6.2')))) >= 0)">$(DefineConstants); </DefineConstants>
<!-- Framework 4.7 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.7')))) >= 0)">$(DefineConstants); SUPPORTS_TUPLE_ELEMENT_NAMES_ATTRIBUTE; SUPPORTS_VALUE_TUPLE; </DefineConstants>
<!-- Framework 4.7.1 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.7.1')))) >= 0)">$(DefineConstants); SUPPORTS_ENUMERABLE_APPENDPREPEND; </DefineConstants>
<!-- Framework 4.7.2 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.7.2')))) >= 0)">$(DefineConstants); SUPPORTS_TO_HASHSET; </DefineConstants>
<!-- Framework 4.8 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.8')))) >= 0)">$(DefineConstants); </DefineConstants>
<!-- Framework 4.8.1 -->
<DefineConstants Condition="$(IsNetCore) OR $(IsNetStandard) OR ($(IsNetFramework) AND $([System.Version]::Parse('$(NetFrameworkVersion)').CompareTo($([System.Version]::Parse('4.8.1')))) >= 0)">$(DefineConstants); </DefineConstants>
<!-- Standard 1.3 -->
<DefineConstants Condition="$(IsNetStandard) AND $([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.3')))) >= 0">$(DefineConstants); SUPPORTS_BUFFER_MEMORYCOPY; SUPPORTS_TO_UNIX_TIME_MILLISECONDS; </DefineConstants>
<!-- Standard 1.4 -->
<DefineConstants Condition="$(IsNetStandard) AND $([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.4')))) >= 0">$(DefineConstants); </DefineConstants>
<!-- Standard 1.5 -->
<DefineConstants Condition="$(IsNetStandard) AND $([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.5')))) >= 0">$(DefineConstants); </DefineConstants>
<!-- Standard 1.6 -->
<DefineConstants Condition="$(IsNetStandard) AND $([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('1.6')))) >= 0">$(DefineConstants); </DefineConstants>
<!-- Standard 2.0 -->
<DefineConstants Condition="$(IsNetStandard) AND $([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('2.0')))) >= 0">$(DefineConstants); SUPPORTS_HTTPCLIENT; </DefineConstants>
<!-- Standard 2.1 -->
<DefineConstants Condition="$(IsNetStandard) AND $([System.Version]::Parse('$(NetStandardVersion)').CompareTo($([System.Version]::Parse('2.1')))) >= 0">$(DefineConstants); SUPPORTS_MATHF; SUPPORTS_DOES_NOT_RETURN_ATTRIBUTE; SUPPORTS_NOT_NULL_WHEN_ATTRIBUTE; SUPPORTS_NOT_NULL_ATTRIBUTE; SUPPORTS_DISALLOW_NULL_ATTRIBUTE; SUPPORTS_RANGE_AND_INDEX; SUPPORTS_ARRAYPOOL; SUPPORTS_STRING_CONTAINS_COMPARISON_TYPE; SUPPORTS_STRING_SPLIT_CHAR; SUPPORTS_SYSTEM_HASHCODE; SUPPORTS_TO_HASHSET; SUPPORTS_STACK_TRYPOP; SUPPORTS_STACK_TRYPEEK; SUPPORTS_SPAN; SUPPORTS_ARRAY_FILL; SUPPORTS_TUPLE_DECONSTRUCT; </DefineConstants>
<!-- Core 1.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('1.0')))) >= 0">$(DefineConstants); SUPPORTS_BUFFER_MEMORYCOPY; SUPPORTS_TO_UNIX_TIME_MILLISECONDS; </DefineConstants>
<!-- Core 2.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('2.0')))) >= 0">$(DefineConstants); SUPPORTS_MATHF; SUPPORTS_HTTPCLIENT; SUPPORTS_ARRAYPOOL; SUPPORTS_TO_HASHSET; SUPPORTS_STACK_TRYPOP; SUPPORTS_STACK_TRYPEEK; SUPPORTS_STRING_SPLIT_CHAR; SUPPORTS_ARRAY_FILL; SUPPORTS_TUPLE_DECONSTRUCT; </DefineConstants>
<!-- Core 2.1 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('2.1')))) >= 0">$(DefineConstants); SUPPORTS_RNG_FILL; SUPPORTS_SPAN; SUPPORTS_STRING_CONTAINS_COMPARISON_TYPE; SUPPORTS_SYSTEM_HASHCODE; </DefineConstants>
<!-- Core 3.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('3.0')))) >= 0">$(DefineConstants); SUPPORTS_VECTOR_128; SUPPORTS_VECTOR_256; SUPPORTS_FMADD; SUPPORTS_DOES_NOT_RETURN_ATTRIBUTE; SUPPORTS_NOT_NULL_WHEN_ATTRIBUTE; SUPPORTS_NOT_NULL_ATTRIBUTE; SUPPORTS_DISALLOW_NULL_ATTRIBUTE; SUPPORTS_RANGE_AND_INDEX; SUPPORTS_MOVETO_OVERWRITE; SUPPORTS_BITOPERATIONS; SUPPORTS_INTRINSICS; </DefineConstants>
<!-- Core 3.1 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('3.1')))) >= 0">$(DefineConstants); SUPPORTS_CALLER_ARGUMENT_EXPRESSION_ATTRIBUTE; SUPPORTS_OPTIMIZATION; SUPPORTS_FILE_ASYNC; </DefineConstants>
<!-- Core 5.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('5.0')))) >= 0">$(DefineConstants); SUPPORTS_VECTOR_64; DEPRECATED_BINARY_FORMATTER; SUPPORTS_EXTERNAL_INIT; SUPPORTS_SKIP_LOCALS_INIT; DEPRECATED_UTF7; </DefineConstants>
<!-- Core 6.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('6.0')))) >= 0">$(DefineConstants); DEPRECATED_RNG_CRYPTO_SERVICE_PROVIDER; SUPPORTS_STACKTRACE_HIDDEN_ATTRIBUTE; SUPPORTS_CALLER_ARGUMENT_EXPRESSION_ATTRIBUTE; SUPPORTS_RANDOM_SHARED; SUPPORTS_RANDOM_NEXTINT64; SUPPORTS_MINMAX_BY; SUPPORTS_FIRSTLASTSINGLE_DEFAULT; SUPPORTS_STRING_COPYTO_SPAN; SUPPORTS_MATH_RECIPROCAL_ESTIMATE; SUPPORTS_ENUM_PARSE_SPAN; </DefineConstants>
<!-- Core 7.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('7.0')))) >= 0">$(DefineConstants); SUPPORTS_VECTOR_IS_HARDWARE_ACCELERATED SUPPORTS_STATIC_IN_INTERFACES; SUPPORTS_GENERATED_REGEX; </DefineConstants>
<!-- Core 8.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('8.0')))) >= 0">$(DefineConstants); SUPPORTS_VECTOR_512; </DefineConstants>
<!-- Core 9.0 -->
<DefineConstants Condition="$(IsNetCore) AND $([System.Version]::Parse('$(NetCoreVersion)').CompareTo($([System.Version]::Parse('9.0')))) >= 0">$(DefineConstants); </DefineConstants>
</PropertyGroup>
<!-- HINT: This is for debugging! You can invoke this part by executing 'msbuild /t:ShowProperties' in the VS Developer Command Line -->
<Target Name="ShowProperties">
<Message Text="TargetFramework:$(TargetFramework)" />
<Message Text="TargetFrameworkVersion:$(TargetFrameworkVersion)" />
<Message Text="AllowUnsafeBlocks:$(AllowUnsafeBlocks)" />
<Message Text="PlatformTarget:$(PlatformTarget)" />
<Message Text="Prefer32Bit:$(Prefer32Bit)" />
<Message Text="IsNetFramework:$(IsNetFramework), Version:$(NetFrameworkVersion)" />
<Message Text="IsNetStandard:$(IsNetStandard), Version:$(NetStandardVersion)" />
<Message Text="IsNetCore:$(IsNetCore), Version:$(NetCoreVersion)" />
<Message Text="Constants: $(DefineConstants)" />
</Target>
</Project>