-
-
Notifications
You must be signed in to change notification settings - Fork 330
/
Copy pathRuntimes.Default.props
30 lines (28 loc) · 1.13 KB
/
Runtimes.Default.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
<Project>
<PropertyGroup>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;osx-arm64</RuntimeIdentifiers>
</PropertyGroup>
<!-- If a runtime identifier is not specified,
the default runtime identifier is decided using the current OS platform. -->
<Choose>
<When Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
</PropertyGroup>
</When>
</Choose>
<!-- On windows we also need a platform specific target framework -->
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<TargetFramework>net9.0-windows10.0.17763.0</TargetFramework>
</PropertyGroup>
</Project>