Skip to content

Commit 45bba53

Browse files
authored
.NET 9 (#17)
1 parent 1b39cd9 commit 45bba53

File tree

16 files changed

+127
-161
lines changed

16 files changed

+127
-161
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
schedule:
99
- cron: '0 0 1 */3 *' # Every 3 months
1010
env:
11-
NET_VERSION: 8.0.204
11+
NET_VERSION: 9.*.*
1212
PROJECT_PATH: 'Scr/Breadcrumb.csproj'
1313
NUGET_PATH: './**/IeuanWalker.Maui.Breadcrumb.1.0.0.nupkg'
1414

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
env:
8-
NET_VERSION: 8.0.204
8+
NET_VERSION: 9.*.*
99
PROJECT_PATH: 'Scr/Breadcrumb.csproj'
1010
NUGET_PATH: './**/IeuanWalker.Maui.Breadcrumb.${{ github.event.release.tag_name }}.nupkg'
1111

Demo/App.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0-android;net8.0-ios;</TargetFrameworks>
3+
<TargetFrameworks>net9.0-android;net9.0-ios;</TargetFrameworks>
44
<OutputType>Exe</OutputType>
55
<RootNamespace>App</RootNamespace>
66
<UseMaui>true</UseMaui>
@@ -17,6 +17,8 @@
1717
<ApplicationVersion>1</ApplicationVersion>
1818
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
1919
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
20+
21+
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
2022
</PropertyGroup>
2123
<ItemGroup>
2224
<!-- App Icon -->
@@ -32,9 +34,8 @@
3234
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
3335
</ItemGroup>
3436
<ItemGroup>
35-
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
36-
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
37-
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
37+
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
38+
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />
3839
</ItemGroup>
3940
<ItemGroup>
4041
<ProjectReference Include="..\Scr\Breadcrumb.csproj" />

Demo/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public partial class App : Application
77
public App()
88
{
99
InitializeComponent();
10-
11-
MainPage = new NavigationPage(new TestPage1());
1210
}
11+
12+
protected override Window CreateWindow(IActivationState? activationState) => new(new NavigationPage(new TestPage1()));
1313
}

Demo/Pages/BasePage.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ void ThemeToggle_Clicked(object? sender, EventArgs e)
3232
{
3333
ToolbarItem? item = (ToolbarItem?)sender;
3434

35-
if (item is null || Application.Current is null)
35+
if(item is null || Application.Current is null)
3636
{
3737
return;
3838
}
3939

40-
switch (item.Text)
40+
switch(item.Text)
4141
{
4242
case nameof(Theme.Light):
4343
Application.Current.Resources = new DarkTheme();
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
33
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
4-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
5-
<uses-permission android:name="android.permission.INTERNET" />
4+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
5+
<uses-permission android:name="android.permission.INTERNET"/>
66
</manifest>

Demo/Platforms/Android/MainActivity.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Android.App;
22
using Android.Content.PM;
3-
using Microsoft.Maui;
43

54
namespace App;
65

Demo/Platforms/iOS/AppDelegate.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Foundation;
2-
using Microsoft.Maui;
32

43
namespace App;
54

Demo/Resources/AppIcon/appicon.svg

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 5 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)