|
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks> |
| 5 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.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);net9.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 <RuntimeIdentifier>. |
| 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>App1</RootNamespace> |
| 18 | + <UseMaui>true</UseMaui> |
| 19 | + <SingleProject>true</SingleProject> |
| 20 | + <ImplicitUsings>enable</ImplicitUsings> |
| 21 | + <Nullable>enable</Nullable> |
| 22 | + |
| 23 | + <!-- Display name --> |
| 24 | + <ApplicationTitle>App1</ApplicationTitle> |
| 25 | + |
| 26 | + <!-- App Identifier --> |
| 27 | + <ApplicationId>com.companyname.app10</ApplicationId> |
| 28 | + <ApplicationIdGuid>f7b4f002-16fc-4768-af83-3343d9fd3b10</ApplicationIdGuid> |
| 29 | + |
| 30 | + <!-- Versions --> |
| 31 | + <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
| 32 | + <ApplicationVersion>1</ApplicationVersion> |
| 33 | + |
| 34 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">12.2</SupportedOSPlatformVersion> |
| 35 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">12.0</SupportedOSPlatformVersion> |
| 36 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
| 37 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
| 38 | + <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
| 39 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
| 40 | + </PropertyGroup> |
| 41 | + |
| 42 | + <ItemGroup> |
| 43 | + <!-- App Icon --> |
| 44 | + <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4"/> |
| 45 | + |
| 46 | + <!-- Splash Screen --> |
| 47 | + <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128"/> |
| 48 | + |
| 49 | + <!-- Images --> |
| 50 | + <MauiImage Include="Resources\Images\*"/> |
| 51 | + <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185"/> |
| 52 | + |
| 53 | + <!-- Custom Fonts --> |
| 54 | + <MauiFont Include="Resources\Fonts\*"/> |
| 55 | + |
| 56 | + <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
| 57 | + <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)"/> |
| 58 | + </ItemGroup> |
| 59 | + |
| 60 | + <ItemGroup> |
| 61 | + <AndroidResource Remove="Views\**"/> |
| 62 | + <Compile Remove="Views\**"/> |
| 63 | + <EmbeddedResource Remove="Views\**"/> |
| 64 | + <MauiCss Remove="Views\**"/> |
| 65 | + <MauiXaml Remove="Views\**"/> |
| 66 | + <None Remove="Views\**"/> |
| 67 | + </ItemGroup> |
| 68 | + |
| 69 | + <ItemGroup> |
| 70 | + <PackageReference Include="Microsoft.Maui.Controls" Version="9.0.21"/> |
| 71 | + <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.21"/> |
| 72 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0"/> |
| 73 | + </ItemGroup> |
| 74 | + |
| 75 | + <ItemGroup> |
| 76 | + <ProjectReference Include="..\..\src\FmgLib.MauiMarkup.Generator\FmgLib.MauiMarkup.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> |
| 77 | + <ProjectReference Include="..\..\src\FmgLib.MauiMarkup\FmgLib.MauiMarkup.csproj" /> |
| 78 | + </ItemGroup> |
| 79 | + |
| 80 | +</Project> |
0 commit comments