Skip to content

Commit f675567

Browse files
Merge pull request #4 from HadayaRahman-SF4673/main
952707-Updated .NET Version
2 parents 5cfa657 + 609595a commit f675567

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

App.xaml.cs

+5-2
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 MainPage();
108
}
9+
10+
protected override Window CreateWindow(IActivationState activationState)
11+
{
12+
return new Window(new MainPage());
13+
}
1114
}

CustomScale.csproj

+9-7
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>CustomScale</RootNamespace>
88
<UseMaui>true</UseMaui>
@@ -24,9 +24,9 @@
2424
<!-- Required for C# Hot Reload -->
2525
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>
2626

27-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
28-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
29-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
27+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-ios'">15.0</SupportedOSPlatformVersion>
28+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-maccatalyst'">15.0</SupportedOSPlatformVersion>
29+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-android'">21.0</SupportedOSPlatformVersion>
3030
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
3131
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
3232
</PropertyGroup>
@@ -51,13 +51,15 @@
5151

5252
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
5353
<!-- Required - WinUI does not yet have buildTransitive for everything -->
54-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
55-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
54+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="*" />
55+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="*" />
5656
</ItemGroup>
5757

5858
<ItemGroup>
5959
<PackageReference Include="Syncfusion.Maui.Core" Version="*" />
6060
<PackageReference Include="Syncfusion.Maui.Gauges" Version="*" />
61+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
62+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.4" />
6163
</ItemGroup>
6264

6365
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">

CustomScale.csproj.user

-11
This file was deleted.

0 commit comments

Comments
 (0)