|
4 | 4 | <!-- Cleared: src/Directory.Build.props sets the single target. --> |
5 | 5 | <TargetFramework></TargetFramework> |
6 | 6 |
|
7 | | - <!-- AddWifi has one signature on every target, but Android's manager needs Shiny's host, and UseShiny only |
8 | | - exists in Shiny.Hosting.Maui's platform builds. The net10.0 build serves the maui-labs heads: macOS |
9 | | - resolves Shiny.Net.Wifi's own macOS build at runtime, Linux gets the NetworkManager implementation. --> |
10 | | - <TargetFrameworks>net10.0;net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks> |
| 7 | + <!-- Shiny.Net.Wifi declares AddWifi on its platform targets only, so the maui-labs macOS head gets a build of |
| 8 | + its own. Android's manager needs Shiny's host, and UseShiny only exists in Shiny.Hosting.Maui's platform |
| 9 | + builds; macOS has none of those and registers Shiny's core services directly. The net10.0 build serves the |
| 10 | + Linux (GTK4) head with the NetworkManager implementation, and registers nothing anywhere else. --> |
| 11 | + <TargetFrameworks>net10.0;net10.0-android;net10.0-ios;net10.0-maccatalyst;net10.0-macos</TargetFrameworks> |
11 | 12 | <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks> |
12 | 13 |
|
13 | 14 | <UseMaui>true</UseMaui> |
|
18 | 19 | <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-android'))">21.0</SupportedOSPlatformVersion> |
19 | 20 | <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-ios'))">15.0</SupportedOSPlatformVersion> |
20 | 21 | <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-maccatalyst'))">15.0</SupportedOSPlatformVersion> |
| 22 | + <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-macos'))">14.0</SupportedOSPlatformVersion> |
21 | 23 | <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion> |
22 | 24 | </PropertyGroup> |
23 | 25 |
|
|
36 | 38 | <DefineConstants>$(DefineConstants);WIFI_LINUX</DefineConstants> |
37 | 39 | </PropertyGroup> |
38 | 40 |
|
39 | | - <ItemGroup Condition="'$(TargetFramework)' != 'net10.0'"> |
| 41 | + <ItemGroup Condition="'$(TargetFramework)' != 'net10.0' AND !$(TargetFramework.Contains('-macos'))"> |
40 | 42 | <PackageReference Include="Shiny.Hosting.Maui" /> |
41 | 43 | <Compile Include="../Shared/ShinyMauiHosting.cs" Link="ShinyMauiHosting.cs" /> |
42 | 44 | </ItemGroup> |
43 | 45 |
|
| 46 | + <!-- No Shiny.Hosting.Maui build exists for macOS, so its core services are registered directly. --> |
| 47 | + <ItemGroup Condition="$(TargetFramework.Contains('-macos'))"> |
| 48 | + <Compile Include="../Shared/ShinyCoreHosting.cs" Link="ShinyCoreHosting.cs" /> |
| 49 | + </ItemGroup> |
| 50 | + |
44 | 51 | <ItemGroup> |
45 | 52 | <ProjectReference Include="../Shiny.AppDeviceBridge/Shiny.AppDeviceBridge.csproj" /> |
46 | 53 | <ProjectReference Include="../Shiny.AppDeviceBridge.Wifi.Client/Shiny.AppDeviceBridge.Wifi.Client.csproj" /> |
|
0 commit comments