Skip to content

Commit 3a54fd0

Browse files
Merge pull request #3 from SyncfusionExamples/update-sample-version
Update latest Net 10 sample
2 parents ae5f65a + c51349a commit 3a54fd0

16 files changed

Lines changed: 26 additions & 8005 deletions

File tree

GettingStarted/GettingStarted.sln

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

GettingStarted/GettingStarted.slnx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="GettingStarted/GettingStarted.csproj" />
3+
</Solution>

GettingStarted/GettingStarted/App.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace GettingStarted
1+
using Microsoft.Extensions.DependencyInjection;
2+
3+
namespace GettingStarted
24
{
35
public partial class App : Application
46
{

GettingStarted/GettingStarted/AppShell.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
66
xmlns:local="clr-namespace:GettingStarted"
7-
Shell.FlyoutBehavior="Disabled"
87
Title="GettingStarted">
98

109
<ShellContent
10+
Title="Home"
1111
ContentTemplate="{DataTemplate local:MainPage}"
1212
Route="MainPage" />
1313

GettingStarted/GettingStarted/GettingStarted.csproj

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
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> -->
4+
<TargetFrameworks>net10.0-android</TargetFrameworks>
5+
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
6+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
87

98
<!-- Note for MacCatalyst:
109
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
@@ -20,6 +19,14 @@
2019
<ImplicitUsings>enable</ImplicitUsings>
2120
<Nullable>enable</Nullable>
2221

22+
<!-- Enable XAML source generation for faster build times and improved performance.
23+
This generates C# code from XAML at compile time instead of runtime inflation.
24+
To disable, remove this line.
25+
For individual files, you can override by setting Inflator metadata:
26+
<MauiXaml Update="MyPage.xaml" Inflator="Default" /> (reverts to defaults: Runtime for Debug, XamlC for Release)
27+
<MauiXaml Update="MyPage.xaml" Inflator="Runtime" /> (force runtime inflation) -->
28+
<MauiXamlInflator>SourceGen</MauiXamlInflator>
29+
2330
<!-- Display name -->
2431
<ApplicationTitle>GettingStarted</ApplicationTitle>
2532

@@ -38,7 +45,6 @@
3845
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
3946
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
4047
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
41-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
4248
</PropertyGroup>
4349

4450
<ItemGroup>
@@ -51,7 +57,7 @@
5157
<!-- Images -->
5258
<MauiImage Include="Resources\Images\*" />
5359
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
54-
60+
5561
<!-- Custom Fonts -->
5662
<MauiFont Include="Resources\Fonts\*" />
5763

@@ -61,9 +67,8 @@
6167

6268
<ItemGroup>
6369
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
64-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
70+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0" />
6571
<PackageReference Include="Syncfusion.Maui.RichTextEditor" Version="*" />
6672
</ItemGroup>
67-
6873

6974
</Project>

GettingStarted/GettingStarted/Platforms/MacCatalyst/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<array>
1616
<integer>2</integer>
1717
</array>
18+
<key>LSApplicationCategoryType</key>
19+
<string>public.app-category.lifestyle</string>
1820
<key>UIRequiredDeviceCapabilities</key>
1921
<array>
2022
<string>arm64</string>

GettingStarted/GettingStarted/Platforms/Tizen/Main.cs

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

GettingStarted/GettingStarted/Platforms/Tizen/tizen-manifest.xml

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

GettingStarted/GettingStarted/Platforms/Windows/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
1010

11-
<mp:PhoneIdentity PhoneProductId="5B130653-1D59-4F28-BE4E-895888040C56" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
11+
<mp:PhoneIdentity PhoneProductId="739DBFED-7ECA-4694-95F8-B56FF513A820" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
1212

1313
<Properties>
1414
<DisplayName>$placeholder$</DisplayName>

GettingStarted/GettingStarted/Platforms/Windows/app.manifest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
-->
1111
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
1212
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
13+
14+
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
1315
</windowsSettings>
1416
</application>
1517
</assembly>

0 commit comments

Comments
 (0)