File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 <!-- NullabilityInfoContextSupport is disabled by default for Android -->
1414 <NullabilityInfoContextSupport >true</NullabilityInfoContextSupport >
1515 <EmbedAssembliesIntoApk >true</EmbedAssembliesIntoApk >
16- <!-- Enable optimized marshal methods for faster managed↔native interop.
17- .NET 10 generates efficient bridging code at build time instead of the
18- slower runtime-generated trampolines. -->
19- <AndroidEnableMarshalMethods >true</AndroidEnableMarshalMethods >
16+ <!-- Do NOT enable AndroidEnableMarshalMethods on .NET 10 with profiled AOT + trimming.
17+ The build-time P/Invoke stub generator can produce stubs that crash in native code
18+ when combined with partial AOT and trimmed assemblies — the crash bypasses managed
19+ exception handling entirely, resulting in silent SIGSEGV/SIGABRT with no crash logs.
20+ This is especially dangerous for apps with complex interop (UnmanagedCallersOnly,
21+ unmanaged function pointers, reflection-based handle discovery).
22+ The default runtime-generated trampolines are slower but proven reliable. -->
23+ <AndroidEnableMarshalMethods >false</AndroidEnableMarshalMethods >
2024 <!-- Suppress XA0141 page-size warnings. ELF patching is disabled for all configurations
2125 (see PatchElfPageSizeEnabled below) to prevent APK signature corruption.
2226 The XA0141 warning is therefore expected and harmless.
You can’t perform that action at this time.
0 commit comments