Repository navigation
Upgrade to .NET 11 and MudBlazor 9.14.0 - #120
Merged
Merged
Conversation
Retarget to net11.0 with MAUI 11.0.10, EF Core 11.0.0 and CommunityToolkit.Maui 17.0.0. .NET for Android 11 only accepts API 37 as the target platform, so that moves from 36. The test project drops its Microsoft.Extensions.Logging.Abstractions reference now that it ships in the shared framework.
9.14.0 went back to only fitting a chart to a parent whose height is set inline, so the Trends card height moves from the scoped stylesheet onto the element. Without that the charts fall back to 350px and spill out of their 160px cards.
Closed
12 of 21 tasks
BL0016 is suppressed because the five JS calls are scroll helpers with nothing useful to do in a catch. The export spinner keeps its StateHasChanged since the backup runs synchronously.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First step of #119: the retarget and the package bumps that go with it, plus MudBlazor 9.14.0 and a few small cleanups for things the new SDK warns about.
net10.0becomesnet11.0everywhere, with MAUI 11.0.10, EF Core 11.0.0 and CommunityToolkit.Maui 17.0.0. The Android target platform has to move from 36 to 37 because .NET for Android 11 fails the build on anything lower, which also makes the app target Android 17. The test project loses itsMicrosoft.Extensions.Logging.Abstractionsreference since that's in the shared framework now, and its test packages are brought up to date.MudBlazor goes from 9.13.0 to 9.14.0. That release went back to only fitting a
MatchBoundsToSizechart to a parent whose height is set inline (MudBlazor/MudBlazor#14238), and our 160px card height was in the scoped stylesheet, so the charts fell back to 350px and spilled out of their cards. The height now sits on thetrend-view-chartdiv itself, and the charts measure the same as on 9.13.0 on Windows and on the emulator.The last commit clears what the net11 build newly warns about, and the Windows Release build now has 0 warnings:
NoWarn, because the five hits are scroll helpers with nothing useful to do in a catch.CalendarSwitcher.NextYearandPreviousYeardrop theirStateHasChanged, since the page rerenders through theSelectedYearbinding and takes the switcher with it.SettingsPage.StartExport, keeps its call behind a pragma. The backup's SQLite queries complete synchronously, so that call is what puts the spinner up before the work and not after it.DataPoint.MoodsandMotivationalQuotesan array type.<link rel="icon">inindex.htmlstops the WebView asking for/favicon.icoon every navigation.The Windows Release build renders every page with no console errors, and the calendar's year arrows still work. The Release APK from the final head ran on an Android 17 (API 37) emulator with WebView 145 through a fresh install, home, the mood picker, the keyboard, the dose dialog and BACK, Trends, Calendar, Settings, an export through the system file picker and an import of that same file, in light and dark, with no crashes or errors in logcat. The rest of the app looks the same before and after.
Before the MudBlazor bump the Release APK also ran on the API 35 emulator, which is where the startup numbers come from: Android now runs on CoreCLR,
CreateMauiAppwent from 5.2 to 6.3 s down to 1.7 to 2.4 s, and the signed APK went from 42.6 MB to 37.3 MB. The move to EF Core 11 also clears the high severity SQLitePCLRaw advisory that main restores with.Not covered: a real phone and the signed deploy workflow.