Repository navigation
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
47 lines (40 loc) · 2 KB
/
Copy pathDirectory.Build.props
File metadata and controls
47 lines (40 loc) · 2 KB
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
<Project>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
<ToonCoreProjectPath Condition="'$(ToonCoreProjectPath)' == ''">$([System.Environment]::GetEnvironmentVariable('DEVOP_TOON_CORE_CSPROJ'))</ToonCoreProjectPath>
<ToonApiProjectPath Condition="'$(ToonApiProjectPath)' == ''">$([System.Environment]::GetEnvironmentVariable('DEVOP_TOON_API_CSPROJ'))</ToonApiProjectPath>
</PropertyGroup>
<PropertyGroup>
<UseLocalToonCoreProject>false</UseLocalToonCoreProject>
<UseLocalToonApiProject>false</UseLocalToonApiProject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<UseLocalToonCoreProject Condition="'$(ToonCoreProjectPath)' != '' and Exists('$(ToonCoreProjectPath)')">true</UseLocalToonCoreProject>
<UseLocalToonApiProject Condition="'$(ToonApiProjectPath)' != '' and Exists('$(ToonApiProjectPath)')">true</UseLocalToonApiProject>
</PropertyGroup>
<!--
1. CI Builds only run tests on modern supported frameworks
2. Local builds run tests on .NET Framework 4.8.1 (Windows only) and modern supported frameworks
-->
<Choose>
<When Condition=" '$(CI)' == 'true'">
<PropertyGroup>
<TestTargetFrameworks>net8.0;net9.0;net10.0</TestTargetFrameworks>
</PropertyGroup>
</When>
<Otherwise>
<Choose>
<When Condition=" $([MSBuild]::IsOsPlatform('Windows')) ">
<PropertyGroup>
<TestTargetFrameworks>net481;net8.0;net9.0;net10.0</TestTargetFrameworks>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<TestTargetFrameworks>net8.0;net9.0;net10.0</TestTargetFrameworks>
</PropertyGroup>
</Otherwise>
</Choose>
</Otherwise>
</Choose>
</Project>