Skip to content

Commit a4ec13b

Browse files
Merge pull request #4 from HadayaRahman-SF4673/master
952707-Updated .NET Version
2 parents e23a28f + 7ce3630 commit a4ec13b

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

CircularTimer/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 AppShell());
13+
}
1114
}

CircularTimer/CircularTimer.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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>
99
<RootNamespace>CircularTimer</RootNamespace>
1010
<UseMaui>true</UseMaui>
1111
<SingleProject>true</SingleProject>
1212
<ImplicitUsings>enable</ImplicitUsings>
13+
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
1314

1415
<!-- Display name -->
1516
<ApplicationTitle>CircularTimer</ApplicationTitle>
@@ -22,8 +23,8 @@
2223
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
2324
<ApplicationVersion>1</ApplicationVersion>
2425

25-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
26-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
26+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
27+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
2728
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
2829
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
2930
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
@@ -54,6 +55,8 @@
5455

5556
<ItemGroup>
5657
<PackageReference Include="Syncfusion.Maui.Gauges" Version="*" />
58+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
59+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.4" />
5760
</ItemGroup>
5861

5962
</Project>

CircularTimer/MainPage.xaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
ShowTicks="False">
1515
<gauge:RadialAxis.Pointers>
1616
<gauge:RangePointer x:Name="range"
17+
x:DataType="gauge:ShapePointer"
1718
Value="{Binding Source={x:Reference pointer},Path=Value}"
1819
EnableAnimation="True"
1920
Fill="Blue" />
@@ -40,8 +41,6 @@
4041
FontSize="50"
4142
FontFamily="Sync FontIcons"
4243
TextColor="Blue"
43-
HeightRequest="40"
44-
WidthRequest="50"
4544
HorizontalOptions="Center"
4645
VerticalOptions="Center"
4746
BackgroundColor="Transparent"
@@ -53,8 +52,6 @@
5352
FontSize="50"
5453
FontFamily="Sync FontIcons"
5554
TextColor="Blue"
56-
HeightRequest="40"
57-
WidthRequest="50"
5855
HorizontalOptions="Center"
5956
VerticalOptions="Center"
6057
BackgroundColor="Transparent"

0 commit comments

Comments
 (0)