Skip to content

Commit 45d7f70

Browse files
committed
Code updated
1 parent 9c934e7 commit 45d7f70

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed
Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<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+
88
<OutputType>Exe</OutputType>
99
<RootNamespace>SfDataGridSample</RootNamespace>
1010
<UseMaui>true</UseMaui>
1111
<SingleProject>true</SingleProject>
1212
<ImplicitUsings>enable</ImplicitUsings>
1313

14-
<!-- Display name -->
14+
<!-- App Info -->
1515
<ApplicationTitle>SfDataGridSample</ApplicationTitle>
16-
17-
<!-- App Identifier -->
1816
<ApplicationId>com.companyname.sfdatagridsample</ApplicationId>
1917
<ApplicationIdGuid>a0b71591-91dd-492b-b622-60a9259d25fb</ApplicationIdGuid>
20-
21-
<!-- Versions -->
2218
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
2319
<ApplicationVersion>1</ApplicationVersion>
2420

21+
<!-- Platform Versions -->
2522
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
2623
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
2724
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
@@ -31,35 +28,26 @@
3128
</PropertyGroup>
3229

3330
<ItemGroup>
34-
<!-- App Icon -->
3531
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
36-
37-
<!-- Splash Screen -->
3832
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
39-
40-
<!-- Images -->
4133
<MauiImage Include="Resources\Images\*" />
4234
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
43-
44-
<!-- Custom Fonts -->
4535
<MauiFont Include="Resources\Fonts\*" />
46-
47-
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
4836
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
4937
</ItemGroup>
5038

5139
<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="*" />
5442
</ItemGroup>
5543

5644
<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>
6351
</ItemGroup>
6452

6553
</Project>

SfDataGridSample/SfDataGridSample.csproj.user

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
5-
<ActiveDebugFramework>net7.0-windows10.0.19041.0</ActiveDebugFramework>
5+
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
66
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
77
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
88
<DefaultDevice>pixel_5_-_api_33</DefaultDevice>
99
</PropertyGroup>
1010
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-android|AnyCPU'">
1111
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
1212
</PropertyGroup>
13+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
14+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
15+
</PropertyGroup>
1316
<ItemGroup>
1417
<MauiXaml Update="App.xaml">
1518
<SubType>Designer</SubType>

0 commit comments

Comments
 (0)