PRS.Avalonia.iOS.csproj 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>Exe</OutputType>
  4. <TargetFrameworks>net8.0-ios</TargetFrameworks>
  5. <SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
  6. <Nullable>enable</Nullable>
  7. <Platforms>AnyCPU</Platforms>
  8. <NullabilityInfoContextSupport>true</NullabilityInfoContextSupport>
  9. <UseMauiEssentials>true</UseMauiEssentials>
  10. </PropertyGroup>
  11. <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
  12. <CodesignKey>iPhone Developer</CodesignKey>
  13. <CodesignProvision>Development (com.prs.avalonia)</CodesignProvision>
  14. </PropertyGroup>
  15. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  16. <CodesignKey>iPhone Distribution</CodesignKey>
  17. <CodesignProvision>Ad hoc (com.prs.avalonia)</CodesignProvision>
  18. </PropertyGroup>
  19. <ItemGroup>
  20. <ProjectReference Include="..\..\..\inabox\InABox.Avalonia.Platform.iOS\InABox.Avalonia.Platform.iOS.csproj" />
  21. <ProjectReference Include="..\..\..\inabox\InABox.Avalonia.Platform\InABox.Avalonia.Platform.csproj" />
  22. <ProjectReference Include="..\PRS.Avalonia\PRS.Avalonia.csproj"/>
  23. </ItemGroup>
  24. <ItemGroup>
  25. <PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.2" />
  26. <PackageReference Include="Avalonia.iOS" Version="11.3.2" />
  27. <PackageReference Include="Microsoft.Maui.Essentials" Version="8.0.100" />
  28. </ItemGroup>
  29. <ItemGroup>
  30. <Folder Include="Assets.xcassets\" />
  31. </ItemGroup>
  32. <PropertyGroup>
  33. <PublishAot>false</PublishAot>
  34. <!-- Recommended Avalonia trimming settings for Native AOT -->
  35. <BuiltInComInteropSupport>false</BuiltInComInteropSupport>
  36. <TrimMode>link</TrimMode>
  37. </PropertyGroup>
  38. <ItemGroup>
  39. <TrimmerRootDescriptor Include="TrimmerRoots.xml" />
  40. </ItemGroup>
  41. <ItemGroup>
  42. <!-- Preserve Avalonia types for reflection -->
  43. <TrimmerRootAssembly Include="Avalonia.Themes.Fluent" />
  44. <TrimmerRootAssembly Include="Autofac" />
  45. <TrimmerRootAssembly Include="Avalonia.Controls" />
  46. <TrimmerRootAssembly Include="InABox.Avalonia" />
  47. <TrimmerRootAssembly Include="InABox.Avalonia.Platform" />
  48. <TrimmerRootAssembly Include="InABox.Avalonia.Platform.iOS" />
  49. <TrimmerRootAssembly Include="InABox.Client.RPC" />
  50. <TrimmerRootAssembly Include="PRS.Avalonia" />
  51. <TrimmerRootAssembly Include="PRSClasses" />
  52. <TrimmerRootAssembly Include="InABox.Core" />
  53. <TrimmerRootAssembly Include="InABox.Formatters.Core" />
  54. <TrimmerRootAssembly Include="InABox.Integration" />
  55. <TrimmerRootAssembly Include="InABox.Logging.Shared" />
  56. <TrimmerRootAssembly Include="InABox.RPC.Shared" />
  57. </ItemGroup>
  58. <!-- Forces the use of the iOS interpreter during builds -->
  59. <PropertyGroup Condition="$(TargetFramework.Contains('-ios'))">
  60. <UseInterpreter>true</UseInterpreter>
  61. </PropertyGroup>
  62. <!-- Disables the new "managed-static" registrar. Could cause the app's size to be slightly larger.
  63. May enable in the future See : https://github.com/xamarin/xamarin-macios/wiki/.NET-9-release-notes#type-registrar-managed-static-as-the-new-default -->
  64. <Target Name="SelectStaticRegistrar" AfterTargets="SelectRegistrar">
  65. <PropertyGroup Condition="'$(Registrar)' == 'managed-static'">
  66. <Registrar>static</Registrar>
  67. </PropertyGroup>
  68. </Target>
  69. </Project>