M3: iOS TFM (macOS-only condition) + Android-only condition for AndroidX.LocalBroadcastManager
This commit is contained in:
parent
250b2c3c10
commit
311d043db9
1 changed files with 5 additions and 3 deletions
|
|
@ -1,7 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net10.0-android</TargetFrameworks>
|
||||
<!-- Windows 에선 ios 워크로드가 없으므로 android 만; macOS 빌드머신에서 ios TFM 추가 (M3) -->
|
||||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">net10.0-android;net10.0-ios</TargetFrameworks>
|
||||
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('OSX'))">net10.0-android</TargetFrameworks>
|
||||
|
||||
|
||||
<!-- Note for MacCatalyst:
|
||||
|
|
@ -69,8 +71,8 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0" />
|
||||
<PackageReference Include="ZXing.Net.Maui.Controls" Version="0.4.0" />
|
||||
<PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="3.2.0" />
|
||||
<!-- 모달 NavigationPage 를 링커가 싣지 않아 FileNotFoundException 으로 크래시 → 명시 참조 -->
|
||||
<PackageReference Include="Xamarin.AndroidX.LocalBroadcastManager" Version="1.1.0.24" />
|
||||
<!-- 모달 NavigationPage 를 링커가 싣지 않아 FileNotFoundException 으로 크래시 → 명시 참조 (Android 전용) -->
|
||||
<PackageReference Include="Xamarin.AndroidX.LocalBroadcastManager" Version="1.1.0.24" Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue