unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.61k stars 694 forks source link

[Android] app stuck on resource loading #17304

Open xperiandri opened 1 week ago

xperiandri commented 1 week ago

Current behavior

When debugger is attached an app stuck at the line global::Windows.ApplicationModel.Resources.ResourceLoader.DefaultLanguage = "en"; in the App.InitializeComponent method image

I tried applying <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> but I still cannot step into the App.InitializeComponent

When not attached it just closes

Expected behavior

App loads correctly

How to reproduce it (as minimally and precisely as possible)

Give me the suggestion on how can I narrow the problem further. I don't know how to create repro sample now

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

5.2.161

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

17.10.3

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 week ago

This feels like a .NET issue we won't be able to get around. You can try with different version of .NET to see if anything changes.

xperiandri commented 1 week ago

Do you mean net7.0 or different SDK like 8.0.202?

jeromelaban commented 1 week ago

Testing different versions like 8.0.300, or even net 9.0 if you're up for it. This feels like an ICU issue (we don't control that part of .NET).