Skip to content

Commit 82550c3

Browse files
Merge pull request #4 from SowntharyaJ/main
Changed Sample Target Version to Latest .NET9 Target Version.
2 parents ad7d355 + 5b1f77f commit 82550c3

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')) 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')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net9.0-windows10.0.19041</TargetFrameworks>
66
<OutputType>Exe</OutputType>
77
<RootNamespace>ListViewMaui</RootNamespace>
88
<UseMaui>true</UseMaui>
@@ -51,6 +51,8 @@
5151

5252

5353
<ItemGroup>
54+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
55+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
5456
<PackageReference Include="Syncfusion.Maui.ListView" Version="*" />
5557
</ItemGroup>
5658

0 commit comments

Comments
 (0)