Skip to content

Commit ff32ca4

Browse files
Merge pull request #4 from SowntharyaJ/master
Changed Sample Target Version to Latest .NET9 Target Version
2 parents 4b030c4 + 94cef23 commit ff32ca4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ListViewMaui/ListViewMaui/App.xaml.cs

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

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

ListViewMaui/ListViewMaui/ListViewMaui.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.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);net6.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
@@ -84,6 +84,8 @@
8484
</ItemGroup>
8585

8686
<ItemGroup>
87+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
88+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
8789
<PackageReference Include="Syncfusion.Maui.ListView" Version="*" />
8890
</ItemGroup>
8991

0 commit comments

Comments
 (0)