Skip to content

Commit 229d6cc

Browse files
Merge pull request #3 from NatarajanSF4844/SampleWarnings
Sample warnings
2 parents 6d9119d + b163886 commit 229d6cc

File tree

5 files changed

+22
-32
lines changed

5 files changed

+22
-32
lines changed

GettingStarted/GettingStarted/App.xaml.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ public partial class App : Application
55
public App()
66
{
77
InitializeComponent();
8-
9-
MainPage = new AppShell();
108
}
9+
10+
protected override Window CreateWindow(IActivationState? activationState)
11+
{
12+
return new Window(new MainPage());
13+
}
1114
}

GettingStarted/GettingStarted/AppShell.xaml

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

GettingStarted/GettingStarted/AppShell.xaml.cs

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

GettingStarted/GettingStarted/GettingStarted.csproj

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
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>
99
<RootNamespace>GettingStarted</RootNamespace>
1010
<UseMaui>true</UseMaui>
1111
<SingleProject>true</SingleProject>
1212
<ImplicitUsings>enable</ImplicitUsings>
13-
13+
<Nullable>enable</Nullable>
14+
1415
<!-- Display name -->
1516
<ApplicationTitle>GettingStarted</ApplicationTitle>
1617

@@ -49,9 +50,13 @@
4950
</ItemGroup>
5051

5152
<ItemGroup>
52-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
53-
<PackageReference Include="Syncfusion.Maui.Buttons" Version="100.2.76" />
54-
<PackageReference Include="Syncfusion.Maui.Core" Version="100.2.109" />
53+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="*" />
54+
<PackageReference Include="Syncfusion.Maui.Buttons" Version="*" />
55+
<PackageReference Include="Syncfusion.Maui.Core" Version="*" />
5556
</ItemGroup>
5657

58+
<ItemGroup>
59+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
60+
</ItemGroup>
61+
5762
</Project>

GettingStarted/GettingStarted/GettingStarted.csproj.user

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
5-
<ActiveDebugFramework>net7.0-windows10.0.19041.0</ActiveDebugFramework>
5+
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
66
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
7+
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
8+
<DefaultDevice>pixel_5_-_api_34</DefaultDevice>
9+
</PropertyGroup>
10+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'">
11+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
712
</PropertyGroup>
813
</Project>

0 commit comments

Comments
 (0)