|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFrameworks>net9.0-android</TargetFrameworks> |
| 5 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('osx'))">$(TargetFrameworks);net9.0-ios;net9.0-maccatalyst</TargetFrameworks> |
| 6 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041.0</TargetFrameworks> |
| 7 | + <!-- <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-tizen</TargetFrameworks> --> |
| 8 | + <TargetFrameworks>$(TargetFrameworks);net9.0</TargetFrameworks> |
| 9 | + <OutputType Condition="'$(TargetFramework)' != 'net9.0'">Exe</OutputType> |
| 10 | + |
| 11 | + <!-- .NET MAUI --> |
| 12 | + <UseMaui>true</UseMaui> |
| 13 | + <SingleProject>true</SingleProject> |
| 14 | + |
| 15 | + <!-- Project Options --> |
| 16 | + <Nullable>enable</Nullable> |
| 17 | + <LangVersion>latest</LangVersion> |
| 18 | + <ImplicitUsings>enable</ImplicitUsings> |
| 19 | + <RootNamespace>HybridWebViewApp</RootNamespace> |
| 20 | + <WindowsPackageType>None</WindowsPackageType> |
| 21 | + |
| 22 | + <!-- Display name --> |
| 23 | + <ApplicationTitle>HybridWebViewApp</ApplicationTitle> |
| 24 | + |
| 25 | + <!-- App Identifier --> |
| 26 | + <ApplicationId>com.companyname.hybridwebviewapp</ApplicationId> |
| 27 | + |
| 28 | + <!-- Versions --> |
| 29 | + <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
| 30 | + <ApplicationVersion>1</ApplicationVersion> |
| 31 | + |
| 32 | + <!-- Target Platform Options --> |
| 33 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion> |
| 34 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion> |
| 35 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
| 36 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
| 37 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
| 38 | + |
| 39 | + <!-- Minimum Target OS Version for Windows Platform --> |
| 40 | + <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
| 41 | + </PropertyGroup> |
| 42 | + |
| 43 | + <ItemGroup> |
| 44 | + <!-- App Icon --> |
| 45 | + <MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" /> |
| 46 | + <!-- Splash Screen --> |
| 47 | + <MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" BaseSize="128,128" /> |
| 48 | + <!-- Images --> |
| 49 | + <MauiImage Include="Resources\Images\*" /> |
| 50 | + <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> |
| 51 | + <!-- Custom Fonts --> |
| 52 | + <MauiFont Include="Resources\Fonts\*" /> |
| 53 | + <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
| 54 | + <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
| 55 | + </ItemGroup> |
| 56 | + |
| 57 | + <ItemGroup> |
| 58 | + <None Remove="HybridWebViewApp.code-workspace" /> |
| 59 | + <None Remove="HybridWebViewApp.slnx" /> |
| 60 | + </ItemGroup> |
| 61 | + |
| 62 | + <ItemGroup> |
| 63 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.*-*" Condition="'$(Configuration)' == 'Debug'" /> |
| 64 | + <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> |
| 65 | + </ItemGroup> |
| 66 | + |
| 67 | + <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'"> |
| 68 | + <BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" /> |
| 69 | + </ItemGroup> |
| 70 | + |
| 71 | + <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'"> |
| 72 | + <BundleResource Include="Platforms\MacCatalyst\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" /> |
| 73 | + </ItemGroup> |
| 74 | +</Project> |
0 commit comments