Jonathan Peppers
Jonathan Peppers
So .NET 9 Preview 5: ``` dotnet new maui dotnet build -f net9.0-android -c Release -r android-arm64 vs dotnet build -f net9.0-android -c Release -r android-arm64 -p:TrimMode=full ``` ``` Summary:...
Yeah if F# is close to working, let me make a sample for it and make sure CI will test it! Maybe I’ll have some time in the next few...
Here is an example trace: * [enum-traces.zip](https://github.com/user-attachments/files/16625857/enum-traces.zip) * https://github.com/chabiss/periodictable (app) Search for either `Android.Graphics.Paint.Cap.get_Butt()` or `Android.Graphics.Paint.Join.get_Miter()` as an example. I'm doing this for now, which would also help .NET 8:...
I think the main issue it mentions the Xamarin: `Xamarin.iOS.framework/Versions/Current/bin/mlaunch`
The OP is using .NET 6, but it seems like it should still work: https://github.com/dotnet/runtime/blob/release/6.0/src/libraries/System.Console/src/System/ConsolePal.Android.cs You should be able to catch `System.PlatformNotSupportedException`, so I'm not sure why it's not working....
Xamarin was working for me at one point: https://github.com/jonathanpeppers/BenchmarkDotNet-Android .NET 6+ and MAUI should for sure work, I believe we have some benchmarks running in a CI pipeline somewhere.
This project is working in .NET 9: * https://github.com/dotnet/maui/blob/main/src/Core/tests/Benchmarks.Droid/Benchmarks.Droid.csproj There might be some hacks in there that make things work, but it's been a while, so not remembering fully.
If you can get the [`adb logcat`](https://docs.microsoft.com/xamarin/android/deploy-test/debugging/android-debug-log) output, it will show the Java class that `r8` removed in the error. You should then be able to add a ProGuard rule...