|
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks> |
| 5 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.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);net6.0-tizen</TargetFrameworks> --> |
| 8 | + <OutputType>Exe</OutputType> |
| 9 | + <RootNamespace>DotNetMaui_LocationCrash</RootNamespace> |
| 10 | + <UseMaui>true</UseMaui> |
| 11 | + <SingleProject>true</SingleProject> |
| 12 | + <ImplicitUsings>enable</ImplicitUsings> |
| 13 | + |
| 14 | + <!-- Display name --> |
| 15 | + <ApplicationTitle>DotNetMaui-LocationCrash</ApplicationTitle> |
| 16 | + |
| 17 | + <!-- App Identifier --> |
| 18 | + <ApplicationId>com.companyname.dotnetmaui_locationcrash</ApplicationId> |
| 19 | + <ApplicationIdGuid>741AA85F-A01A-43D7-AA7D-F77F2404D13D</ApplicationIdGuid> |
| 20 | + |
| 21 | + <!-- Versions --> |
| 22 | + <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
| 23 | + <ApplicationVersion>1</ApplicationVersion> |
| 24 | + |
| 25 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion> |
| 26 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion> |
| 27 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
| 28 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
| 29 | + <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
| 30 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
| 31 | + </PropertyGroup> |
| 32 | + <!-- This is required to build to iOS device for some reason on VSMac --> |
| 33 | + <PropertyGroup Condition="$(TargetFramework.Contains('-ios'))"> |
| 34 | + <RuntimeIdentifier>ios-arm64</RuntimeIdentifier> |
| 35 | + </PropertyGroup> |
| 36 | + <!-- This is required to build to iOS device for some reason on VSMac --> |
| 37 | + <PropertyGroup> |
| 38 | + <MtouchLink>None</MtouchLink> |
| 39 | + </PropertyGroup> |
| 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 | + <MauiFont Include="Resources\Fonts\*" /> |
| 50 | + |
| 51 | + <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
| 52 | + <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
| 53 | + </ItemGroup> |
| 54 | + |
| 55 | +</Project> |
0 commit comments