|
1 | | -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks> |
5 | | - <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</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 | + |
6 | 16 | <OutputType>Exe</OutputType> |
7 | 17 | <RootNamespace>ListViewDemo</RootNamespace> |
8 | 18 | <UseMaui>true</UseMaui> |
9 | 19 | <SingleProject>true</SingleProject> |
10 | 20 | <ImplicitUsings>enable</ImplicitUsings> |
11 | | - <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling> |
| 21 | + <Nullable>enable</Nullable> |
12 | 22 |
|
13 | 23 | <!-- Display name --> |
14 | 24 | <ApplicationTitle>ListViewDemo</ApplicationTitle> |
|
17 | 27 | <ApplicationId>com.companyname.listviewdemo</ApplicationId> |
18 | 28 |
|
19 | 29 | <!-- Versions --> |
| 30 | + <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
20 | 31 | <ApplicationVersion>1</ApplicationVersion> |
21 | 32 |
|
22 | | - <!-- Required for C# Hot Reload --> |
23 | | - <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> |
24 | 35 |
|
25 | | - <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion> |
26 | | - <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion> |
27 | | - <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion> |
28 | | - <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion> |
29 | | - <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> |
30 | 42 | </PropertyGroup> |
31 | 43 |
|
32 | 44 | <ItemGroup> |
33 | 45 | <!-- App Icon --> |
34 | | - <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" /> |
35 | 47 |
|
36 | 48 | <!-- Splash Screen --> |
37 | | - <MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" /> |
| 49 | + <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> |
38 | 50 |
|
39 | 51 | <!-- Images --> |
40 | 52 | <MauiImage Include="Resources\Images\*" /> |
| 53 | + <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" /> |
41 | 54 |
|
42 | 55 | <!-- Custom Fonts --> |
43 | 56 | <MauiFont Include="Resources\Fonts\*" /> |
|
48 | 61 |
|
49 | 62 | <ItemGroup Condition="$(TargetFramework.Contains('-windows'))"> |
50 | 63 | <!-- Required - WinUI does not yet have buildTransitive for everything --> |
51 | | - <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" /> |
52 | | - <PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" /> |
| 64 | + <PackageReference Include="Microsoft.WindowsAppSDK" Version="*" /> |
| 65 | + <PackageReference Include="Microsoft.Graphics.Win2D" Version="*" /> |
53 | 66 | </ItemGroup> |
54 | 67 |
|
55 | 68 | <ItemGroup> |
56 | | - <None Remove="Resources\Fonts\Roboto-Medium.ttf" /> |
57 | | - <None Remove="Resources\Fonts\Roboto-Regular.ttf" /> |
58 | | - <None Remove="Resources\Images\image0.png" /> |
59 | | - <None Remove="Resources\Images\image1.png" /> |
60 | | - <None Remove="Resources\Images\image10.png" /> |
61 | | - <None Remove="Resources\Images\image11.png" /> |
62 | | - <None Remove="Resources\Images\image12.png" /> |
63 | | - <None Remove="Resources\Images\image13.png" /> |
64 | | - <None Remove="Resources\Images\image14.png" /> |
65 | | - <None Remove="Resources\Images\image15.png" /> |
66 | | - <None Remove="Resources\Images\image16.png" /> |
67 | | - <None Remove="Resources\Images\image17.png" /> |
68 | | - <None Remove="Resources\Images\image18.png" /> |
69 | | - <None Remove="Resources\Images\image19.png" /> |
70 | | - <None Remove="Resources\Images\image2.png" /> |
71 | | - <None Remove="Resources\Images\image20.png" /> |
72 | | - <None Remove="Resources\Images\image21.png" /> |
73 | | - <None Remove="Resources\Images\image22.png" /> |
74 | | - <None Remove="Resources\Images\image23.png" /> |
75 | | - <None Remove="Resources\Images\image24.png" /> |
76 | | - <None Remove="Resources\Images\image25.png" /> |
77 | | - <None Remove="Resources\Images\image26.png" /> |
78 | | - <None Remove="Resources\Images\image27.png" /> |
79 | | - <None Remove="Resources\Images\image28.png" /> |
80 | | - <None Remove="Resources\Images\image3.png" /> |
81 | | - <None Remove="Resources\Images\image4.png" /> |
82 | | - <None Remove="Resources\Images\image5.png" /> |
83 | | - <None Remove="Resources\Images\image6.png" /> |
84 | | - <None Remove="Resources\Images\image7.png" /> |
85 | | - <None Remove="Resources\Images\image8.png" /> |
86 | | - <None Remove="Resources\Images\image9.png" /> |
| 69 | + <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> |
| 70 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" /> |
| 71 | + <PackageReference Include="Syncfusion.Maui.ListView" Version="*" /> |
87 | 72 | </ItemGroup> |
88 | 73 |
|
89 | 74 | <ItemGroup> |
90 | | - <PackageReference Include="Syncfusion.Maui.ListView" Version="19.4.55-preview" /> |
| 75 | + <MauiXaml Update="View\MainPage.xaml"> |
| 76 | + <Generator>MSBuild:Compile</Generator> |
| 77 | + </MauiXaml> |
91 | 78 | </ItemGroup> |
92 | 79 |
|
93 | | - <PropertyGroup Condition="$(TargetFramework.Contains('-windows'))"> |
94 | | - <OutputType>WinExe</OutputType> |
95 | | - <RuntimeIdentifier>win10-x64</RuntimeIdentifier> |
96 | | - </PropertyGroup> |
97 | | - |
98 | 80 | </Project> |
0 commit comments