Skip to content

Commit 64a5fc8

Browse files
Merge pull request #3 from SowntharyaJ/main
Changed Sample Target Version to Latest .NET9 Target Version.
2 parents a066dff + 01fc3d8 commit 64a5fc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+350
-1000
lines changed

ListViewMaui.sln

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.0.31611.283
4+
VisualStudioVersion = 17.13.35919.96 d17.13
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ListViewMaui", "ListViewMaui\ListViewMaui.csproj", "{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListViewMaui", "ListViewMaui\ListViewMaui.csproj", "{A0F8891C-61DB-4E83-B01D-C5DBCDC24308}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17-
{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}.Release|Any CPU.Build.0 = Release|Any CPU
19-
{D85E18DE-97BB-40E0-8D9B-520FC1C714EF}.Release|Any CPU.Deploy.0 = Release|Any CPU
14+
{A0F8891C-61DB-4E83-B01D-C5DBCDC24308}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{A0F8891C-61DB-4E83-B01D-C5DBCDC24308}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{A0F8891C-61DB-4E83-B01D-C5DBCDC24308}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{A0F8891C-61DB-4E83-B01D-C5DBCDC24308}.Release|Any CPU.Build.0 = Release|Any CPU
2018
EndGlobalSection
2119
GlobalSection(SolutionProperties) = preSolution
2220
HideSolutionNode = FALSE
2321
EndGlobalSection
2422
GlobalSection(ExtensibilityGlobals) = postSolution
25-
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
23+
SolutionGuid = {A2FF7D50-889C-4995-8279-FC57FA52BE88}
2624
EndGlobalSection
2725
EndGlobal

ListViewMaui/App.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
1+
<?xml version = "1.0" encoding = "UTF-8" ?>
2+
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
23
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
34
xmlns:windows="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific;assembly=Microsoft.Maui.Controls"
45
xmlns:local="clr-namespace:ListViewMaui"

ListViewMaui/App.xaml.cs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
using Microsoft.Maui;
2-
using Microsoft.Maui.Controls;
3-
using Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific;
4-
using Application = Microsoft.Maui.Controls.Application;
1+
namespace ListViewMaui;
52

6-
namespace ListViewMaui
3+
public partial class App : Application
74
{
8-
public partial class App : Application
5+
public App()
96
{
10-
public App()
11-
{
12-
InitializeComponent();
7+
InitializeComponent();
8+
}
139

14-
MainPage = new MainPage();
15-
}
10+
protected override Window CreateWindow(IActivationState? activationState)
11+
{
12+
return new Window(new MainPage());
1613
}
1714
}

ListViewMaui/ListViewMaui.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</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>
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);net9.0-tizen</TargetFrameworks> -->
8+
9+
<!-- Note for MacCatalyst:
10+
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
11+
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
12+
The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
13+
either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
14+
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
15+
516
<OutputType>Exe</OutputType>
617
<RootNamespace>ListViewMaui</RootNamespace>
718
<UseMaui>true</UseMaui>
819
<SingleProject>true</SingleProject>
9-
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
20+
<ImplicitUsings>enable</ImplicitUsings>
21+
<Nullable>enable</Nullable>
1022

1123
<!-- Display name -->
1224
<ApplicationTitle>ListViewMaui</ApplicationTitle>
1325

1426
<!-- App Identifier -->
15-
<ApplicationId>com.companyname.ListViewMaui</ApplicationId>
27+
<ApplicationId>com.companyname.listviewmaui</ApplicationId>
1628

1729
<!-- Versions -->
30+
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
1831
<ApplicationVersion>1</ApplicationVersion>
1932

20-
<!-- Required for C# Hot Reload -->
21-
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>
33+
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
34+
<WindowsPackageType>None</WindowsPackageType>
2235

23-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
24-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
25-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
26-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
27-
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
36+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
37+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
38+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
39+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
40+
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
41+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
2842
</PropertyGroup>
2943

3044
<ItemGroup>
3145
<!-- App Icon -->
32-
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" />
46+
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
3347

3448
<!-- Splash Screen -->
35-
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" />
49+
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
3650

3751
<!-- Images -->
3852
<MauiImage Include="Resources\Images\*" />
53+
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
3954

4055
<!-- Custom Fonts -->
4156
<MauiFont Include="Resources\Fonts\*" />
42-
</ItemGroup>
4357

44-
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
45-
<!-- Required - WinUI does not yet have buildTransitive for everything -->
46-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" />
47-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.29-preview3" />
58+
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
59+
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
4860
</ItemGroup>
4961

5062
<ItemGroup>
63+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
64+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
5165
<PackageReference Include="Syncfusion.Maui.Core" Version="*" />
5266
<PackageReference Include="Syncfusion.Maui.DataSource" Version="*" />
5367
<PackageReference Include="Syncfusion.Maui.GridCommon" Version="*" />
5468
<PackageReference Include="Syncfusion.Maui.ListView" Version="*" />
5569
</ItemGroup>
5670

57-
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
58-
<OutputType>WinExe</OutputType>
59-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
60-
</PropertyGroup>
61-
6271
</Project>

ListViewMaui/ListViewMaui.sln

Lines changed: 0 additions & 27 deletions
This file was deleted.

ListViewMaui/ListViewMaui/App.xaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

ListViewMaui/ListViewMaui/App.xaml.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

ListViewMaui/ListViewMaui/ListViewMaui.csproj

Lines changed: 0 additions & 55 deletions
This file was deleted.

ListViewMaui/ListViewMaui/MainPage.xaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

ListViewMaui/ListViewMaui/MainPage.xaml.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)