-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtargets.props
86 lines (83 loc) · 3.55 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
<Project>
<!--
Supported frameworks (included in NuGet packages):
.NET Core 6 until 12-NOV-2024
.NET Core 7 until 14-MAY-2024
.NET Core 8 until 10-NOV-2026
.NET 4.8
No longer supported frameworks because of end of life:
.NET Core 2.0 is end of life since 1-OCT-2018. No support possible anymore.
.NET Core 2.1 is end of life since 21-AUG-2021. No support possible anymore.
.NET Core 2.2 is end of life since 31-DEC-2019. No support possible anymore.
.NET Core 3.0 is end of life since 03-MAR-2020. No support possible anymore.
.NET Core 3.1 is end of life since 13-DEC-2021. No support possible anymore.
.NET 5.0 is end of life since 10-MAY-2022. No support possible anymore.
.NET 4.6 is end of life since 26-APR-2022. No support possible anymore.
.NET 4.6.1 is end of life since 26-APR-2022. No support possible anymore.
Possible custom frameworks (NOT included in standard build and NuGet packages):
.NET 4.6.2
.NET 4.7.2
A custom framework can be used to test a legacy framework. Uncomment the
following lines to test a custom test target. Supported values:
net462
net472
-->
<!--
<PropertyGroup>
<CustomFramework>net462</CustomFramework>
</PropertyGroup>
-->
<Choose>
<!-- Note: to build and test a legacy framework, set the CustomFramework environment
variable accordingly -->
<When Condition="'$(CustomFramework)' == 'net462'">
<PropertyGroup>
<DisableECCTests>true</DisableECCTests>
<AnalysisLevel>preview-all</AnalysisLevel>
<AppTargetFrameworks>net462</AppTargetFrameworks>
<AppTargetFramework>net462</AppTargetFramework>
<TestsTargetFrameworks>net462</TestsTargetFrameworks>
<LibTargetFrameworks>net462</LibTargetFrameworks>
</PropertyGroup>
</When>
<When Condition="'$(CustomFramework)' == 'net472'">
<PropertyGroup>
<AnalysisLevel>preview-all</AnalysisLevel>
<AppTargetFrameworks>net472</AppTargetFrameworks>
<AppTargetFramework>net472</AppTargetFramework>
<TestsTargetFrameworks>net472</TestsTargetFrameworks>
<LibTargetFrameworks>net472</LibTargetFrameworks>
</PropertyGroup>
</When>
<!-- Visual Studio 2022 -->
<When Condition="'$(VisualStudioVersion)' == '17.0'">
<PropertyGroup>
<AnalysisLevel>preview-all</AnalysisLevel>
<AppTargetFrameworks>net48;net6.0;net7.0;net8.0</AppTargetFrameworks>
<AppTargetFramework>net6.0</AppTargetFramework>
<TestsTargetFrameworks>net48;net8.0</TestsTargetFrameworks>
<LibTargetFrameworks>net48;net6.0;net7.0;net8.0</LibTargetFrameworks>
</PropertyGroup>
</When>
<!-- Visual Studio 2019 -->
<When Condition="'$(VisualStudioVersion)' == '16.0'">
<PropertyGroup>
<AnalysisLevel>preview-all</AnalysisLevel>
<AppTargetFrameworks>net48</AppTargetFrameworks>
<AppTargetFramework>net48</AppTargetFramework>
<TestsTargetFrameworks>net48</TestsTargetFrameworks>
<LibTargetFrameworks>net48</LibTargetFrameworks>
</PropertyGroup>
</When>
<!-- Visual Studio 2017 and earlier -->
<Otherwise>
<PropertyGroup>
<AnalysisLevel>preview-all</AnalysisLevel>
<AppTargetFrameworks>net48</AppTargetFrameworks>
<AppTargetFramework>net48</AppTargetFramework>
<TestsTargetFrameworks>net48</TestsTargetFrameworks>
<LibTargetFrameworks>net48</LibTargetFrameworks>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>