Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Avalonia.Android 11.0.10 [启用修整]Release勾上,发布APK, 使用Assembly.LoadFrom异常

Open YSW33 opened this issue 1 year ago • 1 comments

Describe the bug

img_v3_02c9_ed84a565-449b-47e9-ab11-b167473de3ag

23824019ef036a7c221b8211d66cb56

To Reproduce

Avalonia.Android 11.0.10 ,发布APK,如果把[启用修整]Release勾上,OverlayDialog.ShowCustomModal使用了Assembly assembly = Assembly.LoadFrom(path)就会报错,提示找不到。

Expected behavior

No response

Avalonia version

11.0.10

OS

Android

Additional context

No response

YSW33 avatar Jun 28 '24 14:06 YSW33

Dynamically loaded assemblies will be removed if you enable trimming.

Try adding

<ItemGroup>
    <TrimmerRootAssembly Include="<your assembly name to be loaded dynamically>" />
</ItemGroup>

in your project file.

hez2010 avatar Jul 01 '24 04:07 hez2010