forked from OPCFoundation/UA-.NETStandard-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
targets.props
58 lines (54 loc) · 2.43 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
<Project>
<PropertyGroup>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<Choose>
<!-- .NET 4.8 is only available on Windows builds,
however for mono builds on linux it can be enabled.
msbuild ... /p:MonoBuild=true ...
-->
<When Condition="$([MSBuild]::IsOsPlatform('Windows')) OR ('$(MonoBuild)' == 'true')">
<PropertyGroup>
<DotNetTargetFramework>net48;</DotNetTargetFramework>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<DotNetTargetFramework></DotNetTargetFramework>
</PropertyGroup>
</Otherwise>
</Choose>
<Choose>
<!-- Visual Studio 2022 -->
<When Condition="'$(VisualStudioVersion)' == '17.0'">
<PropertyGroup>
<AnalysisLevel>preview-all</AnalysisLevel>
<AppTargetFrameworks>$(DotNetTargetFramework)netcoreapp3.1;net6.0</AppTargetFrameworks>
<AppTargetFramework>net6.0</AppTargetFramework>
<TestsTargetFrameworks>$(DotNetTargetFramework)netcoreapp2.1;netcoreapp3.1;net6.0</TestsTargetFrameworks>
<LibTargetFrameworks>$(DotNetTargetFramework)netstandard2.0;netstandard2.1;net6.0</LibTargetFrameworks>
<LibxTargetFrameworks>$(DotNetTargetFramework)netcoreapp2.1;netstandard2.1;net6.0</LibxTargetFrameworks>
</PropertyGroup>
</When>
<!-- Visual Studio 2019 -->
<When Condition="'$(VisualStudioVersion)' == '16.0'">
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<AppTargetFrameworks>$(DotNetTargetFramework)netcoreapp3.1</AppTargetFrameworks>
<AppTargetFramework>netcoreapp3.1</AppTargetFramework>
<TestsTargetFrameworks>$(DotNetTargetFramework)netcoreapp2.1;netcoreapp3.1</TestsTargetFrameworks>
<LibTargetFrameworks>$(DotNetTargetFramework)netstandard2.0;netstandard2.1</LibTargetFrameworks>
<LibxTargetFrameworks>$(DotNetTargetFramework)netcoreapp2.1;netstandard2.1</LibxTargetFrameworks>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<AppTargetFrameworks>$(DotNetTargetFramework)netcoreapp2.1</AppTargetFrameworks>
<AppTargetFramework>netcoreapp2.1</AppTargetFramework>
<TestsTargetFrameworks>netcoreapp2.1</TestsTargetFrameworks>
<LibTargetFrameworks>$(DotNetTargetFramework)netstandard2.0</LibTargetFrameworks>
<LibxTargetFrameworks>$(DotNetTargetFramework)netcoreapp2.1</LibxTargetFrameworks>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>