-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathDirectory.Build.props
39 lines (34 loc) · 1.19 KB
/
Directory.Build.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
<Project>
<!--
Add flexibility for target platform selection: depending on the
the "EsdkTargetFramework" build property value either a single
target platform (net6.0 or net8.0) is selected, or all supported
platforms are targeted at once.
Default target platform is in the "Otherwise" clause.
Sample usage:
dotnet build -c Release -p:EsdkTargetFramework=all
-->
<Choose>
<When Condition="'$(EsdkTargetFramework)' == 'net6.0' Or '$(EsdkTargetFramework)' == 'net8.0'">
<PropertyGroup>
<TargetFramework>$(EsdkTargetFramework)</TargetFramework>
</PropertyGroup>
</When>
<When Condition="'$(EsdkTargetFramework)' == 'all'">
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Otherwise>
</Choose>
<PropertyGroup>
<Company>LSEG</Company>
<Authors>LSEG</Authors>
<!-- Restrict language features only to those supported by NET 6 -->
<LangVersion>10.0</LangVersion>
</PropertyGroup>
</Project>