-
Notifications
You must be signed in to change notification settings - Fork 954
/
targets.props
182 lines (180 loc) · 8.83 KB
/
targets.props
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
<Project>
<!-- Uncomment to suppress warning that .NET Core 2.1 is used with .NET 6 library. -->
<!--
<PropertyGroup>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>
-->
<!--
A custom target can be used to test a future or legacy target.
A build with all custom targets which are not part of a regular build
is scheduled once a week in the DevOps build pipeline.
Uncomment the following lines to test a custom test target
supported values: net462, netstandard2.0, netstandard2.1, net472, net48, net6.0, net8.0, net9.0
-->
<!--
<PropertyGroup>
<CustomTestTarget>netstandard2.1</CustomTestTarget>
</PropertyGroup>
-->
<Choose>
<!-- Note: to test targets which support deprecated platforms,
set the CustomTestTarget environment variable accordingly -->
<When Condition="'$(CustomTestTarget)' == 'net462'">
<PropertyGroup>
<DisableECCTests>true</DisableECCTests>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net462</AppTargetFrameworks>
<AppTargetFramework>net462</AppTargetFramework>
<TestsTargetFrameworks>net462</TestsTargetFrameworks>
<LibTargetFrameworks>net462</LibTargetFrameworks>
<LibCoreTargetFrameworks>net462</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net462</LibxTargetFrameworks>
<HttpsTargetFrameworks>net462</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'net472'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net472</AppTargetFrameworks>
<AppTargetFramework>net472</AppTargetFramework>
<TestsTargetFrameworks>net472</TestsTargetFrameworks>
<LibTargetFrameworks>net472</LibTargetFrameworks>
<LibCoreTargetFrameworks>net472</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net472</LibxTargetFrameworks>
<HttpsTargetFrameworks>net472</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'netstandard2.0'">
<PropertyGroup>
<DisableECCTests>true</DisableECCTests>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net6.0</AppTargetFrameworks>
<AppTargetFramework>net6.0</AppTargetFramework>
<TestsTargetFrameworks>net6.0</TestsTargetFrameworks>
<LibTargetFrameworks>netstandard2.0</LibTargetFrameworks>
<LibCoreTargetFrameworks>netstandard2.0</LibCoreTargetFrameworks>
<LibxTargetFrameworks>netstandard2.1</LibxTargetFrameworks>
<HttpsTargetFrameworks>netstandard2.0</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'netstandard2.1'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net6.0</AppTargetFrameworks>
<AppTargetFramework>net6.0</AppTargetFramework>
<TestsTargetFrameworks>net6.0</TestsTargetFrameworks>
<LibTargetFrameworks>netstandard2.1</LibTargetFrameworks>
<LibCoreTargetFrameworks>netstandard2.1</LibCoreTargetFrameworks>
<LibxTargetFrameworks>netstandard2.1</LibxTargetFrameworks>
<HttpsTargetFrameworks>netstandard2.1</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'net48'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net48</AppTargetFrameworks>
<AppTargetFramework>net48</AppTargetFramework>
<TestsTargetFrameworks>net48</TestsTargetFrameworks>
<LibTargetFrameworks>net48</LibTargetFrameworks>
<LibCoreTargetFrameworks>net48</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net48</LibxTargetFrameworks>
<HttpsTargetFrameworks>net48</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'net6.0'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net6.0</AppTargetFrameworks>
<AppTargetFramework>net6.0</AppTargetFramework>
<TestsTargetFrameworks>net6.0</TestsTargetFrameworks>
<LibTargetFrameworks>net6.0</LibTargetFrameworks>
<LibCoreTargetFrameworks>net6.0</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net6.0</LibxTargetFrameworks>
<HttpsTargetFrameworks>net6.0</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'net8.0'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net8.0</AppTargetFrameworks>
<AppTargetFramework>net8.0</AppTargetFramework>
<TestsTargetFrameworks>net8.0</TestsTargetFrameworks>
<LibTargetFrameworks>net8.0</LibTargetFrameworks>
<LibCoreTargetFrameworks>net8.0</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net8.0</LibxTargetFrameworks>
<HttpsTargetFrameworks>net8.0</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomTestTarget)' == 'net9.0'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net9.0</AppTargetFrameworks>
<AppTargetFramework>net9.0</AppTargetFramework>
<TestsTargetFrameworks>net9.0</TestsTargetFrameworks>
<LibTargetFrameworks>net9.0</LibTargetFrameworks>
<LibCoreTargetFrameworks>net9.0</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net9.0</LibxTargetFrameworks>
<HttpsTargetFrameworks>net9.0</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<!-- Note: .NET Core 2.x and 3.x is end of life, removed netcoreapp2.1/3.1 from any target. -->
<!-- Note: .NET Framework 4.6.2 deprecated for 1.4.372, removed net462 from any target except complex types. -->
<!-- Visual Studio 2022, supports .NET Framework 4.7.2/4.8, .NET Standard2.0/2.1, .NET 6/8/9-->
<When Condition="'$(VisualStudioVersion)' == '17.0'">
<PropertyGroup>
<AnalysisLevel>preview</AnalysisLevel>
<AnalysisMode>all</AnalysisMode>
<AnalysisModeStyle>default</AnalysisModeStyle>
<AppTargetFrameworks>net9.0;net6.0;net48</AppTargetFrameworks>
<AppTargetFramework>net9.0</AppTargetFramework>
<TestsTargetFrameworks>net48;net9.0</TestsTargetFrameworks>
<LibTargetFrameworks>net472;net48;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0</LibTargetFrameworks>
<LibCoreTargetFrameworks>net472;net48;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net462;net472;net48;netstandard2.1;net6.0;net8.0;net9.0</LibxTargetFrameworks>
<HttpsTargetFrameworks>net472;net48;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<!-- Visual Studio 2019, supports .NET Framework 4.8 and .NET Core 3.1 -->
<When Condition="'$(VisualStudioVersion)' == '16.0'">
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<AppTargetFrameworks>net48</AppTargetFrameworks>
<AppTargetFramework>net48</AppTargetFramework>
<TestsTargetFrameworks>net48</TestsTargetFrameworks>
<LibTargetFrameworks>net48;netstandard2.1</LibTargetFrameworks>
<LibCoreTargetFrameworks>net48;netstandard2.0;netstandard2.1</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net48;netstandard2.1</LibxTargetFrameworks>
<HttpsTargetFrameworks>net48</HttpsTargetFrameworks>
</PropertyGroup>
</When>
<!-- Visual Studio 2017 and earlier, support only .NET Framework 4.8 because .NET Core 2.x is end of life. -->
<Otherwise>
<PropertyGroup>
<AppTargetFrameworks>net48</AppTargetFrameworks>
<AppTargetFramework>net48</AppTargetFramework>
<TestsTargetFrameworks>net48</TestsTargetFrameworks>
<LibTargetFrameworks>net48</LibTargetFrameworks>
<LibCoreTargetFrameworks>net48</LibCoreTargetFrameworks>
<LibxTargetFrameworks>net48</LibxTargetFrameworks>
<HttpsTargetFrameworks>net48</HttpsTargetFrameworks>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>