|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | | - <TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks> |
5 | | - <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.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);net7.0-tizen</TargetFrameworks> --> |
| 4 | + <!-- Use .NET 9 Target Frameworks --> |
| 5 | + <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks> |
| 6 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks> |
| 7 | + |
8 | 8 | <OutputType>Exe</OutputType> |
9 | 9 | <RootNamespace>SfDataGridSample</RootNamespace> |
10 | 10 | <UseMaui>true</UseMaui> |
11 | 11 | <SingleProject>true</SingleProject> |
12 | 12 | <ImplicitUsings>enable</ImplicitUsings> |
13 | 13 |
|
14 | | - <!-- Display name --> |
| 14 | + <!-- App Info --> |
15 | 15 | <ApplicationTitle>SfDataGridSample</ApplicationTitle> |
16 | | - |
17 | | - <!-- App Identifier --> |
18 | 16 | <ApplicationId>com.companyname.sfdatagridsample</ApplicationId> |
19 | 17 | <ApplicationIdGuid>a0b71591-91dd-492b-b622-60a9259d25fb</ApplicationIdGuid> |
20 | | - |
21 | | - <!-- Versions --> |
22 | 18 | <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> |
23 | 19 | <ApplicationVersion>1</ApplicationVersion> |
24 | 20 |
|
| 21 | + <!-- Platform Versions --> |
25 | 22 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> |
26 | 23 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion> |
27 | 24 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> |
|
31 | 28 | </PropertyGroup> |
32 | 29 |
|
33 | 30 | <ItemGroup> |
34 | | - <!-- App Icon --> |
35 | 31 | <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> |
36 | | - |
37 | | - <!-- Splash Screen --> |
38 | 32 | <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> |
39 | | - |
40 | | - <!-- Images --> |
41 | 33 | <MauiImage Include="Resources\Images\*" /> |
42 | 34 | <MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> |
43 | | - |
44 | | - <!-- Custom Fonts --> |
45 | 35 | <MauiFont Include="Resources\Fonts\*" /> |
46 | | - |
47 | | - <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> |
48 | 36 | <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> |
49 | 37 | </ItemGroup> |
50 | 38 |
|
51 | 39 | <ItemGroup> |
52 | | - <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" /> |
53 | | - <PackageReference Include="Syncfusion.Maui.DataGrid" Version="23.1.40" /> |
| 40 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="$(MauiVersion)" /> |
| 41 | + <PackageReference Include="Syncfusion.Maui.DataGrid" Version="*" /> |
54 | 42 | </ItemGroup> |
55 | 43 |
|
56 | 44 | <ItemGroup> |
57 | | - <MauiXaml Update="Views\EmployeePage.xaml"> |
58 | | - <Generator>MSBuild:Compile</Generator> |
59 | | - </MauiXaml> |
60 | | - <MauiXaml Update="Views\OrderInfoPage.xaml"> |
61 | | - <Generator>MSBuild:Compile</Generator> |
62 | | - </MauiXaml> |
| 45 | + <MauiXaml Update="Views\EmployeePage.xaml"> |
| 46 | + <Generator>MSBuild:Compile</Generator> |
| 47 | + </MauiXaml> |
| 48 | + <MauiXaml Update="Views\OrderInfoPage.xaml"> |
| 49 | + <Generator>MSBuild:Compile</Generator> |
| 50 | + </MauiXaml> |
63 | 51 | </ItemGroup> |
64 | 52 |
|
65 | 53 | </Project> |
0 commit comments