|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks> |
| 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 | + |
5 | 16 | <OutputType>Exe</OutputType> |
6 | 17 | <RootNamespace>ListViewMaui</RootNamespace> |
7 | 18 | <UseMaui>true</UseMaui> |
8 | 19 | <SingleProject>true</SingleProject> |
9 | | - <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling> |
| 20 | + <ImplicitUsings>enable</ImplicitUsings> |
| 21 | + <Nullable>enable</Nullable> |
10 | 22 |
|
11 | 23 | <!-- Display name --> |
12 | 24 | <ApplicationTitle>ListViewMaui</ApplicationTitle> |
13 | 25 |
|
14 | 26 | <!-- App Identifier --> |
15 | | - <ApplicationId>com.companyname.ListViewMaui</ApplicationId> |
| 27 | + <ApplicationId>com.companyname.listviewmaui</ApplicationId> |
16 | 28 |
|
17 | 29 | <!-- Versions --> |
| 30 | + <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
18 | 31 | <ApplicationVersion>1</ApplicationVersion> |
19 | 32 |
|
20 | | - <!-- Required for C# Hot Reload --> |
21 | | - <UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter> |
| 33 | + <!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged --> |
| 34 | + <WindowsPackageType>None</WindowsPackageType> |
22 | 35 |
|
23 | | - <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion> |
24 | | - <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion> |
25 | | - <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion> |
26 | | - <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion> |
27 | | - <TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion> |
| 36 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion> |
| 37 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion> |
| 38 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
| 39 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> |
| 40 | + <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
| 41 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> |
28 | 42 | </PropertyGroup> |
29 | 43 |
|
30 | 44 | <ItemGroup> |
31 | 45 | <!-- App Icon --> |
32 | | - <MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" /> |
| 46 | + <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> |
33 | 47 |
|
34 | 48 | <!-- Splash Screen --> |
35 | | - <MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" /> |
| 49 | + <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> |
36 | 50 |
|
37 | 51 | <!-- Images --> |
38 | 52 | <MauiImage Include="Resources\Images\*" /> |
| 53 | + <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" /> |
39 | 54 |
|
40 | 55 | <!-- Custom Fonts --> |
41 | 56 | <MauiFont Include="Resources\Fonts\*" /> |
42 | | - </ItemGroup> |
43 | 57 |
|
44 | | - <ItemGroup Condition="$(TargetFramework.Contains('-windows'))"> |
45 | | - <!-- Required - WinUI does not yet have buildTransitive for everything --> |
46 | | - <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" /> |
47 | | - <PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.29-preview3" /> |
| 58 | + <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
| 59 | + <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
48 | 60 | </ItemGroup> |
49 | 61 |
|
50 | 62 | <ItemGroup> |
| 63 | + <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> |
| 64 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" /> |
51 | 65 | <PackageReference Include="Syncfusion.Maui.Core" Version="*" /> |
52 | 66 | <PackageReference Include="Syncfusion.Maui.DataSource" Version="*" /> |
53 | 67 | <PackageReference Include="Syncfusion.Maui.GridCommon" Version="*" /> |
54 | 68 | <PackageReference Include="Syncfusion.Maui.ListView" Version="*" /> |
55 | 69 | </ItemGroup> |
56 | 70 |
|
57 | | - <PropertyGroup Condition="$(TargetFramework.Contains('-windows'))"> |
58 | | - <OutputType>WinExe</OutputType> |
59 | | - <RuntimeIdentifier>win-x64</RuntimeIdentifier> |
60 | | - </PropertyGroup> |
61 | | - |
62 | 71 | </Project> |
0 commit comments