|
9 | 9 | <PropertyGroup> |
10 | 10 | <StrideFramework>net10.0</StrideFramework> |
11 | 11 | <StrideFrameworkWindows>net10.0-windows</StrideFrameworkWindows> |
| 12 | + <StrideFrameworkmacOS>net10.0-macos</StrideFrameworkmacOS> |
12 | 13 | <StrideFrameworkAndroid>net10.0-android</StrideFrameworkAndroid> |
13 | 14 | <StrideFrameworkiOS>net10.0-ios</StrideFrameworkiOS> |
14 | 15 | <StrideFrameworkUWP>uap10.0.16299</StrideFrameworkUWP> |
15 | 16 |
|
16 | 17 | <!-- Default values --> |
17 | 18 | <StridePlatformOriginal>$(StridePlatform)</StridePlatformOriginal> |
18 | | - <StridePlatform>Windows</StridePlatform> |
19 | | - <StridePlatform Condition=" '$([MSBuild]::IsOSPlatform(Linux))' Or '$(RuntimeIdentifier.StartsWith(linux))' ">Linux</StridePlatform> |
20 | | - <StridePlatform Condition=" $(RuntimeIdentifier.StartsWith('osx')) ">macOS</StridePlatform> |
| 19 | + <StridePlatform></StridePlatform> |
| 20 | + <StridePlatform Condition=" '$(RuntimeIdentifier.StartsWith(win))' ">Windows</StridePlatform> |
| 21 | + <StridePlatform Condition=" '$(RuntimeIdentifier.StartsWith(osx))' ">macOS</StridePlatform> |
| 22 | + <StridePlatform Condition=" '$(RuntimeIdentifier.StartsWith(linux))' ">Linux</StridePlatform> |
| 23 | + <StridePlatform Condition=" '$(TargetFramework)' == '$(StrideFrameworkWindows)' ">Windows</StridePlatform> |
| 24 | + <StridePlatform Condition=" '$(TargetFramework)' == '$(StrideFrameworkmacOS)' ">macOS</StridePlatform> |
21 | 25 | <StridePlatform Condition=" '$(TargetFramework)' == '$(StrideFrameworkUWP)' ">UWP</StridePlatform> |
22 | 26 | <StridePlatform Condition=" '$(TargetFramework)' == '$(StrideFrameworkAndroid)' ">Android</StridePlatform> |
23 | 27 | <StridePlatform Condition=" '$(TargetFramework)' == '$(StrideFrameworkiOS)' ">iOS</StridePlatform> |
| 28 | + <StridePlatform Condition=" '$(StridePlatform)' == '' And '$([MSBuild]::IsOSPlatform(Linux))' ">Linux</StridePlatform> |
| 29 | + <StridePlatform Condition=" '$(StridePlatform)' == '' And '$([MSBuild]::IsOSPlatform(OSX))' ">macOS</StridePlatform> |
| 30 | + <StridePlatform Condition=" '$(StridePlatform)' == '' ">Windows</StridePlatform> |
24 | 31 |
|
25 | 32 | <StridePlatformFullName Condition="'$(StridePlatformFullName)' == ''">$(StridePlatform)</StridePlatformFullName> |
26 | 33 |
|
27 | | - <StridePlatformDeps Condition=" '$(TargetFramework)' == '$(StrideFramework)' Or '$(TargetFramework)' == '$(StrideFrameworkWindows)' ">dotnet</StridePlatformDeps> |
| 34 | + <StridePlatformDeps Condition=" '$(TargetFramework)' == '$(StrideFramework)' Or '$(TargetFramework)' == '$(StrideFrameworkWindows)' Or '$(TargetFramework)' == '$(StrideFrameworkmacOS)' ">dotnet</StridePlatformDeps> |
28 | 35 | <StridePlatformDeps Condition=" '$(TargetFramework)' == '$(StrideFrameworkUWP)' ">UWP</StridePlatformDeps> |
29 | 36 | <StridePlatformDeps Condition=" '$(TargetFramework)' == '$(StrideFrameworkAndroid)' ">Android</StridePlatformDeps> |
30 | 37 | <StridePlatformDeps Condition=" '$(TargetFramework)' == '$(StrideFrameworkiOS)' ">iOS</StridePlatformDeps> |
|
0 commit comments