Jonathan Peppers
Jonathan Peppers
"Link SDK assemblies only" - yes, `System.Private.CoreLib` is part of the BCL, a trimmed assembly by default. If you're not able to setup a precise trimmer rule to fix it,...
The stack trace is inside MAUI's `TypedBinding`. Does the problem go away if you use a regular binding? The other thing to try is to disable trimming: `PublishTrimmed=false`.
I thought removing usage of `x:DataType` is what would turn off `TypedBinding`: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/compiled-bindings So maybe the issue is not trimming, but XamlC? https://learn.microsoft.com/en-us/dotnet/maui/xaml/xamlc What happens if you put `[XamlCompilation (XamlCompilationOptions.Skip)]`...
Thanks! Fix was: * https://github.com/dotnet/maui/pull/21151
OK, TIL that `xharness` is an ASP.NET application?!? https://github.com/dotnet/xharness/blob/8aa2a4cb80000ebb46ee61cd6ac29b2e63ebe87c/src/Microsoft.DotNet.XHarness.CLI/Microsoft.DotNet.XHarness.CLI.csproj#L42 So, you could somehow install the `ASP.NET Core Runtime 8.0.0` package: https://dotnet.microsoft.com/en-us/download/dotnet/8.0 Which would also fix this.
@marco-skizza can you add some `GC.Collect()` calls to test this? See: * https://github.com/dotnet/maui/wiki/Memory-Leaks#determining-if-there-is-a-leak-or-not
It's possible there is an issue, `CollectionView` isn't on this list where we test each control for leaks: https://github.com/dotnet/maui/blob/23069ff420f98c25545905e730f2d70f0927f2e4/src/Controls/tests/DeviceTests/Memory/MemoryTests.cs#L58-L85
This one is pretty nasty... Using `dotnet-gcdump` with a `Release` build of the app, I see:  You can cause the C# version to leak, if you make the `()...
Between .NET 7 and 8, Android API 34 was released. What is the error message you are getting? `adb logcat` output would show it: https://learn.microsoft.com/xamarin/android/deploy-test/debugging/android-debug-log#accessing-from-the-command-line You could try targeting API...
Thanks! Fix was: * https://github.com/dotnet/maui/pull/21151