|
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks> |
| 5 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks> |
| 6 | + <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> |
| 7 | + <!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> --> |
| 8 | + |
| 9 | + <!-- Note for MacCatalyst: |
| 10 | + The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. |
| 11 | + When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifer>. |
| 12 | + The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated; |
| 13 | + either BOTH runtimes must be indicated or ONLY macatalyst-x64. --> |
| 14 | + <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> |
| 15 | + |
| 16 | + <OutputType>Exe</OutputType> |
| 17 | + <RootNamespace>SfTabviewSample</RootNamespace> |
| 18 | + <UseMaui>true</UseMaui> |
| 19 | + <SingleProject>true</SingleProject> |
| 20 | + <ImplicitUsings>enable</ImplicitUsings> |
| 21 | + |
| 22 | + <!-- Display name --> |
| 23 | + <ApplicationTitle>SfTabviewSample</ApplicationTitle> |
| 24 | + |
| 25 | + <!-- App Identifier --> |
| 26 | + <ApplicationId>com.companyname.sftabviewsample</ApplicationId> |
| 27 | + |
| 28 | + <!-- Versions --> |
| 29 | + <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
| 30 | + <ApplicationVersion>1</ApplicationVersion> |
| 31 | + |
| 32 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> |
| 33 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion> |
| 34 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
| 35 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
| 36 | + <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
| 37 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
| 38 | + </PropertyGroup> |
| 39 | + |
| 40 | + <ItemGroup> |
| 41 | + <!-- App Icon --> |
| 42 | + <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> |
| 43 | + |
| 44 | + <!-- Splash Screen --> |
| 45 | + <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> |
| 46 | + |
| 47 | + <!-- Images --> |
| 48 | + <MauiImage Include="Resources\Images\*" /> |
| 49 | + <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> |
| 50 | + |
| 51 | + <!-- Custom Fonts --> |
| 52 | + <MauiFont Include="Resources\Fonts\*" /> |
| 53 | + |
| 54 | + <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
| 55 | + <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
| 56 | + </ItemGroup> |
| 57 | + |
| 58 | + <ItemGroup> |
| 59 | + <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> |
| 60 | + <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" /> |
| 61 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0-rc.2.23479.6" /> |
| 62 | + <PackageReference Include="Syncfusion.Maui.Core" Version="23.2.6" /> |
| 63 | + <PackageReference Include="Syncfusion.Maui.TabView" Version="23.2.6" /> |
| 64 | + </ItemGroup> |
| 65 | + |
| 66 | + <!-- Build Properties must be defined within these property groups to ensure successful publishing |
| 67 | + to the Mac App Store. See: https://aka.ms/maui-publish-app-store#define-build-properties-in-your-project-file --> |
| 68 | + <PropertyGroup Condition="$(TargetFramework.Contains('-maccatalyst')) and '$(Configuration)' == 'Debug'"> |
| 69 | + <CodesignEntitlements>Platforms/MacCatalyst/Entitlements.Debug.plist</CodesignEntitlements> |
| 70 | + </PropertyGroup> |
| 71 | + |
| 72 | + <PropertyGroup Condition="$(TargetFramework.Contains('-maccatalyst')) and '$(Configuration)' == 'Release'"> |
| 73 | + <CodesignEntitlements>Platforms/MacCatalyst/Entitlements.Release.plist</CodesignEntitlements> |
| 74 | + <UseHardenedRuntime>true</UseHardenedRuntime> |
| 75 | + </PropertyGroup> |
| 76 | +</Project> |
0 commit comments