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 >MauiTestApplication</RootNamespace >
18
+ <UseMaui >true</UseMaui >
19
+ <SingleProject >true</SingleProject >
20
+ <ImplicitUsings >enable</ImplicitUsings >
21
+ <NoWarn >$(NoWarn);CS1591</NoWarn >
22
+ <DefaultLanguage >en-us</DefaultLanguage >
23
+
24
+ <!-- Display name -->
25
+ <ApplicationTitle >MauiTestApplication</ApplicationTitle >
26
+
27
+ <!-- App Identifier -->
28
+ <ApplicationId >org.apache.logging.mauiapp</ApplicationId >
29
+
30
+ <!-- Versions -->
31
+ <ApplicationDisplayVersion >1.0</ApplicationDisplayVersion >
32
+ <ApplicationVersion >1</ApplicationVersion >
33
+
34
+ <!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
35
+ <WindowsPackageType >None</WindowsPackageType >
36
+
37
+ <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" >15.0</SupportedOSPlatformVersion >
38
+ <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'" >15.0</SupportedOSPlatformVersion >
39
+ <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" >21.0</SupportedOSPlatformVersion >
40
+ <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >10.0.17763.0</SupportedOSPlatformVersion >
41
+ <TargetPlatformMinVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >10.0.17763.0</TargetPlatformMinVersion >
42
+ <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'" >6.5</SupportedOSPlatformVersion >
43
+ </PropertyGroup >
44
+
45
+ <ItemGroup >
46
+ <!-- App Icon -->
47
+ <MauiIcon Include =" Resources\AppIcon\appicon.svg" ForegroundFile =" Resources\AppIcon\appiconfg.svg" Color =" #512BD4" />
48
+
49
+ <!-- Splash Screen -->
50
+ <MauiSplashScreen Include =" Resources\Splash\splash.svg" Color =" #512BD4" BaseSize =" 128,128" />
51
+
52
+ <!-- Images -->
53
+ <MauiImage Include =" Resources\Images\*" />
54
+ <MauiImage Update =" Resources\Images\dotnet_bot.png" Resize =" True" BaseSize =" 300,185" />
55
+
56
+ <!-- Custom Fonts -->
57
+ <MauiFont Include =" Resources\Fonts\*" />
58
+
59
+ <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
60
+ <MauiAsset Include =" Resources\Raw\**" LogicalName =" %(RecursiveDir)%(Filename)%(Extension)" />
61
+ </ItemGroup >
62
+
63
+ <ItemGroup >
64
+ <PackageReference Include =" log4net" Version =" $(Log4NetPackageVersion)" />
65
+ <PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
66
+ <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 9.0.0" />
67
+ </ItemGroup >
68
+
69
+ <ItemGroup >
70
+ <EmbeddedResource Include =" log4net.xml" />
71
+ </ItemGroup >
72
+ </Project >
0 commit comments