MAUI .NET 8 app using Microsoft.Extensions.Localization 8.0.8 stuck in splash screen on Android
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
I have a .NET 8 MAUI app utilizing Microsoft.Extensions.Localization for localization of text resources.
After updating the package from Microsoft.Extensions.Localization v8.0.7 to v8.0.8 the app would not launch but be stuck in splash screen.
Context:
* This only happens in release mode, the app is launching and working fine when debugging the app
* This only happens on Android (14), the app is launching and working fine when run on iOS
### Expected Behavior
It should not crash but work fine, when upgrading from v8.0.7 to v8.0.8.
No breaking changes are expected when upgrading the patch level.
### Steps To Reproduce
_No response_
### Exceptions (if any)
Android device log cat shows the following entry:
```
Time Device Name Type PID Tag Message
09-12 17:22:35.885 Google Pixel 7 Error 20157 ile.client.test * Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:3810, condition `is_ok (error)' not met, function:decode_patch, module '[App name removed].dll.so' is unusable (GUID of dependent assembly Microsoft.Extensions.Localization doesn't match (expected '5E767599-DEB3-4C98-99C2-2D432DE9C8D3', got 'F5266167-00CD-447D-B09C-EE78D2B2CE33')).
```
### .NET Version
.NET 8
### Anything else?
Deleting obj and bin folders did not resolve the issue.
Only after downgrading Microsoft.Extensions.Localization from v8.0.8 to 8.0.7, it worked again and app was launching and working as before.
So this means, the current version of Microsoft.Extensions.Localization v8.0.8 lets the app stuck in splash screen when run in release mode on Android.
Edit: Posting here, because official nuget package of Microsoft.Extensions.Localization links to this Github project.
Contributor guide
Assessment
This issue has not been assessed yet.