Skip to content

Upgrade to .NET 11 and MudBlazor 9.14.0 - #120

Merged
danielchalmers merged 3 commits into
mainfrom
c/net-11-upgrade-plan-9d050c
Nov 23, 2026
Merged

danielchalmers merged 3 commits into
mainfrom
c/net-11-upgrade-plan-9d050c

Conversation

@danielchalmers

@danielchalmers danielchalmers commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

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.0 becomes net11.0 everywhere, 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 its Microsoft.Extensions.Logging.Abstractions reference 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 MatchBoundsToSize chart 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 the trend-view-chart div 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:

  • BL0016 (JS interop call not in a try/catch) goes into NoWarn, because the five hits are scroll helpers with nothing useful to do in a catch.
  • CalendarSwitcher.NextYear and PreviousYear drop their StateHasChanged, since the page rerenders through the SelectedYear binding and takes the switcher with it.
  • The third BL0012 hit, in 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.
  • The two CsWinRT1032 warnings are fixed by giving the collection expressions in DataPoint.Moods and MotivationalQuotes an array type.
  • An empty <link rel="icon"> in index.html stops the WebView asking for /favicon.ico on 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, CreateMauiApp went 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.

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.
@danielchalmers danielchalmers changed the title Upgrade to .NET 11 Upgrade to .NET 11 and MudBlazor 9.14.0 Nov 23, 2026
@danielchalmers danielchalmers mentioned this pull request Nov 23, 2026
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.
@danielchalmers
danielchalmers merged commit a5e8160 into main Nov 23, 2026
1 check passed
@danielchalmers
danielchalmers deleted the c/net-11-upgrade-plan-9d050c branch November 23, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant