Skip to content

Commit 155f005

Browse files
committed
add missing file
1 parent 1b8330f commit 155f005

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/TargetFrameworks.props

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
3+
SPDX-License-Identifier: MIT
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<!-- enable target framework net* (.NET >= 5.0) by default -->
8+
<EnableTargetFrameworkDotNet>true</EnableTargetFrameworkDotNet>
9+
<!-- enable target framework netcoreapp* by default -->
10+
<EnableTargetFrameworkNetCoreApp>true</EnableTargetFrameworkNetCoreApp>
11+
<!-- enable target framework net* (.NET Framework/Mono) by default -->
12+
<EnableTargetFrameworkNetFx>true</EnableTargetFrameworkNetFx>
13+
</PropertyGroup>
14+
15+
<!-- On Ubuntu 22.04 -->
16+
<PropertyGroup
17+
Condition=" $([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('ubuntu.22.04')) "
18+
>
19+
<!-- disable .NET Core (cannot run .NET Core on Ubuntu 22.04) -->
20+
<EnableTargetFrameworkNetCoreApp>false</EnableTargetFrameworkNetCoreApp>
21+
<!-- disable Mono (test runner not working on local environment?) -->
22+
<EnableTargetFrameworkNetFx>false</EnableTargetFrameworkNetFx>
23+
</PropertyGroup>
24+
25+
<!-- On Ubuntu 20.04 -->
26+
<PropertyGroup
27+
Condition=" $([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('ubuntu.20.04')) "
28+
>
29+
<!-- enable Mono on GitHub Actions -->
30+
<EnableTargetFrameworkNetFx Condition=" '$(GITHUB_ACTIONS)' == 'true' ">true</EnableTargetFrameworkNetFx>
31+
</PropertyGroup>
32+
</Project>

0 commit comments

Comments
 (0)