Skip to content

Commit 9ae203e

Browse files
Merge pull request #3 from SowntharyaJ/master
Changed Sample Target Version to Latest .NET9 Target Version.
2 parents c769ec9 + 0a587ce commit 9ae203e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ListViewMaui/App.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ public partial class App : Application
44
public App()
55
{
66
InitializeComponent();
7+
}
78

8-
MainPage = new MainPage();
9+
protected override Window CreateWindow(IActivationState? activationState)
10+
{
11+
return new Window(new MainPage());
912
}
1013
}

ListViewMaui/ListViewMaui.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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>
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>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
@@ -49,7 +49,8 @@
4949
</ItemGroup>
5050

5151
<ItemGroup>
52-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
52+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
53+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
5354
<PackageReference Include="Syncfusion.Maui.Core" Version="*" />
5455
<PackageReference Include="Syncfusion.Maui.DataSource" Version="*" />
5556
<PackageReference Include="Syncfusion.Maui.GridCommon" Version="*" />

0 commit comments

Comments
 (0)