You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
3.9KB

  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
  4. <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
  5. <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
  6. <!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
  7. <!-- Note for MacCatalyst:
  8. The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
  9. When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
  10. The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
  11. either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
  12. <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
  13. <OutputType>Exe</OutputType>
  14. <RootNamespace>MaUI</RootNamespace>
  15. <UseMaui>true</UseMaui>
  16. <SingleProject>true</SingleProject>
  17. <ImplicitUsings>enable</ImplicitUsings>
  18. <Nullable>enable</Nullable>
  19. <!-- Display name -->
  20. <ApplicationTitle>MaUI</ApplicationTitle>
  21. <!-- App Identifier -->
  22. <ApplicationId>com.companyname.maui</ApplicationId>
  23. <!-- Versions -->
  24. <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
  25. <ApplicationVersion>1</ApplicationVersion>
  26. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
  27. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
  28. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
  29. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
  30. <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
  31. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
  32. </PropertyGroup>
  33. <ItemGroup>
  34. <!-- App Icon -->
  35. <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
  36. <!-- Splash Screen -->
  37. <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
  38. <!-- Images -->
  39. <MauiImage Include="Resources\Images\*" />
  40. <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
  41. <!-- Custom Fonts -->
  42. <MauiFont Include="Resources\Fonts\*" />
  43. <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
  44. <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
  45. </ItemGroup>
  46. <ItemGroup>
  47. <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
  48. <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
  49. <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
  50. <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.9.0" />
  51. </ItemGroup>
  52. <ItemGroup>
  53. <Compile Update="Pages\ChatRoom\ChatRoom_LLM.xaml.cs">
  54. <DependentUpon>ChatRoom_LLM.xaml</DependentUpon>
  55. </Compile>
  56. <Compile Update="Pages\Mails\ListeEmails.xaml.cs">
  57. <DependentUpon>ListeEmails.xaml</DependentUpon>
  58. </Compile>
  59. </ItemGroup>
  60. <ItemGroup>
  61. <MauiXaml Update="Pages\ChatRoom\ChatRoom_LLM.xaml">
  62. <Generator>MSBuild:Compile</Generator>
  63. </MauiXaml>
  64. <MauiXaml Update="Pages\Mails\ListeEmails.xaml">
  65. <Generator>MSBuild:Compile</Generator>
  66. </MauiXaml>
  67. </ItemGroup>
  68. </Project>