Hi @trungnt2910,
that seemed to solve the dependency issue and the application can be built correctly but an error occurs at runtime:
Unhandled exception. System.TypeLoadException: Could not load type 'Haiku.App.BApplication' from assembly 'haiku, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Abort
Kill Thread
Here’s the crash report:
Debug information for team /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/haiku (3150):
CPU(s): 8x Intel Core™ i7-8650U
Memory: 23.88 GiB total, 1.78 GiB used
Haiku revision: hrev57465 Dec 19 2023 07:03:08 (x86_64)
Active Threads:
thread 3151: pthread func
thread 3152: pthread func
thread 3153: pthread func
thread 3154: pthread func
thread 3155: pthread func
thread 3157: team 3150 debug task
thread 3150: haiku (main)
state: Call (abort() called)
Frame IP Function Name
-----------------------------------------------
00000000 0x19c4a30e0a7 _kern_debugger + 0x7
Disassembly:
_kern_debugger:
0x0000019c4a30e0a0: 48c7c0e9000000 mov $0xe9, %rax
0x0000019c4a30e0a7: 0f05 syscall <--
0x7ff51615eb60 0x19c4a305b55 abort + 0x4a
0x7ff51615eb70 0x185178cd11c /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libcoreclr.so + 0x59311c
0x7ff51615eb90 0x185178cd492 /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libcoreclr.so + 0x593492
0x7ff51615ecc0 0x185173a09ed /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libcoreclr.so + 0x669ed
0x7ff51615ed20 0x185173f8d00 coreclr_execute_assembly + 0xc0
0x7ff51615ee00 0x115c0655353 /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libhostpolicy.so + 0x30353
0x7ff51615eeb0 0x115c0655c47 corehost_main + 0x177
0x7ff51615efe0 0x2d53b4355f /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libhostfxr.so + 0x1b55f
0x7ff51615f100 0x2d53b4417a /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libhostfxr.so + 0x1c17a
0x7ff51615f190 0x2d53b37ecb hostfxr_main_startupinfo + 0x9b
0x7ff51615f270 0x14b2a87fea9 /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/haiku + 0xeea9
0x7ff51615f2d0 0x14b2a874b6e /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/haiku + 0x3b6e
0x7ff51615f300 0x14b2a874d3e /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/haiku + 0x3d3e
0x7ff51615f340 0x1af42fefab3 runtime_loader + 0x113
00000000 0x7fff3176b258 commpage_thread_exit + 0
Registers:
rip: 0x0000019c4a30e0a9
rsp: 0x00007ff51615eb28
rbp: 0x00007ff51615eb50
rax: 0x00000000000000e9
rbx: 0x0000000000000006
rcx: 0x0000019c4a30e0a9
rdx: 0x00007ff51615e62f
rsi: 0x0000019c4a3a406f
rdi: 0x0000019c4a3a5a08
r8: 0x0000000000000000
r9: 0x0000000000000000
r10: 0x0000000000000000
r11: 0x0000000000000206
r12: 0x0000000000000000
r13: 0x0000000000000000
r14: 0x00001097333afd90
r15: 0x0000000000000000
cs: 0x002b
ds: 0x0000
es: 0x0000
fs: 0x0000
gs: 0x0000
ss: 0x0023
st0: 0
st1: 0
st2: 0
st3: 0
st4: 0
st5: 0
st6: 0
st7: 0
mm0: {0, 0, 0, 0}
mm1: {0, 0, 0, 0}
mm2: {0, 0, 0, 0}
mm3: {0, 0, 0, 0}
mm4: {0, 0, 0, 0}
mm5: {0, 0, 0, 0}
mm6: {0, 0, 0, 0}
mm7: {0, 0, 0, 0}
ymm0: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm1: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm2: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm3: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm4: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm5: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm6: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm7: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm8: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm9: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm10: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm11: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm12: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm13: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm14: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm15: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Loaded Images:
ID Text Base Text End Data Base Data End Type Name
--------------------------------------------------------------------------------
12817 0x29bf149000 0x29bf160000 0x29bf160000 0x29bf161000 lib /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libSystem.Native.so
12810 0x2d53b28000 0x2d53b87000 0x2d53b87000 0x2d53b88000 lib /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libhostfxr.so
12820 0x677b7a6000 0x677badf000 0x677badf000 0x677bafa000 lib /boot/system/lib/libicui18n.so.73.2
12819 0x68cda39000 0x68cda3a000 0x68cda3a000 0x68cda3b000 lib /boot/system/lib/libicudata.so.73.2
12818 0xacd0156000 0xacd034a000 0xacd034a000 0xacd0362000 lib /boot/system/lib/libicuuc.so.73.2
12816 0xb6d7ed4000 0xb6d81e2000 0xb6d81e2000 0xb6d8232000 lib /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libclrjit.so
12813 0xe292747000 0xe29279a000 0xe29299a000 0xe2929a3000 lib /boot/system/non-packaged/lib/libnetwork.so
12807 0xf2a6aad000 0xf2a6ce0000 0xf2a6ce0000 0xf2a6cf6000 lib /boot/system/lib/libstdc++.so.6.0.32
12811 0x115c0625000 0x115c0689000 0x115c0689000 0x115c068a000 lib /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libhostpolicy.so
12809 0x130d28a3000 0x130d28c2000 0x130d28c2000 0x130d28c3000 lib /boot/system/lib/libgcc_s.so.1
12806 0x14b2a871000 0x14b2a88b000 0x14b2a88b000 0x14b2a88c000 app /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/haiku
12812 0x1851733a000 0x18517a07000 0x18517a07000 0x18517a8c000 lib /boot/home/workspace/dotnet/haiku/bin/Debug/net8.0-haiku/haiku-x64/libcoreclr.so
12808 0x19c4a2ce000 0x19c4a3de000 0x19c4a3de000 0x19c4a3f4000 lib /boot/system/lib/libroot.so
12805 0x1af42fe0000 0x1af42ffd000 0x1af42ffd000 0x1af42ffe000 lib /boot/system/runtime_loader
12815 0x207dd783000 0x207dd797000 0x207dd797000 0x207dd798000 lib /boot/system/lib/libunwind.so.1.0
12814 0x25eb3663000 0x25eb366e000 0x25eb366e000 0x25eb366f000 lib /boot/system/lib/libbsd.so
12804 0x7fff3176b000 0x7fff31773000 0x00000000 0x00000000 system commpage
Areas:
ID Base End Size (KiB) Protection Locking Name
--------------------------------------------------------------------------------
35157 0x29bf149000 0x29bf160000 92 r-x none libSystem.Native.so_seg0ro
35158 0x29bf160000 0x29bf161000 4 rw- none libSystem.Native.so_seg1rw
35109 0x2d53b28000 0x2d53b87000 380 r-x none libhostfxr.so_seg0ro
35110 0x2d53b87000 0x2d53b88000 4 rw- none libhostfxr.so_seg1rw
35095 0x535c9b0000 0x535c9c0000 64 rw- none rld heap
35096 0x5690165000 0x5690166000 4 rw-cS none _rld_debug_
35168 0x677b7a6000 0x677badf000 3300 r-x none libicui18n.so.73.2_seg0ro
35169 0x677badf000 0x677baf9000 104 rw- none libicui18n.so.73.2_seg1rw
35170 0x677baf9000 0x677bafa000 4 rw- none libicui18n.so.73.2_seg2rw
35166 0x68cda39000 0x68cda3a000 4 r-x none libicudata.so.73.2_seg0ro
35167 0x68cda3a000 0x68cda3b000 4 rw- none libicudata.so.73.2_seg1rw
35107 0x68e0d95000 0x68e0da5000 64 rw- none rld heap
35126 0x913bd88000 0x913bd8e000 24 rw- none libcoreclr.so mmap area
35163 0xacd0156000 0xacd034a000 2000 r-x none libicuuc.so.73.2_seg0ro
35164 0xacd034a000 0xacd0361000 92 rw- none libicuuc.so.73.2_seg1rw
35165 0xacd0361000 0xacd0362000 4 rw- none libicuuc.so.73.2_seg2rw
35127 0xae3146c000 0xae31475000 36 rw- none libcoreclr.so mmap area
35149 0xb6d7ed4000 0xb6d81e2000 3128 r-x none libclrjit.so_seg0ro
35150 0xb6d81e2000 0xb6d81fb000 100 rw- none libclrjit.so_seg1rw
35151 0xb6d81fb000 0xb6d8232000 220 rw- none libclrjit.so_seg2rw
35128 0xd901051000 0xd901052000 4 rw- none libcoreclr.so mmap area
35131 0xda15526000 0xda1552c000 24 rw- none libcoreclr.so mmap area
35132 0xe15fdd8000 0xe15fdd9000 4 rw- none libcoreclr.so mmap area
35133 0xe26abb0000 0xe26abc0000 64 none libcoreclr.so mmap area
35136 0xe275468000 0xe27546e000 24 rw- none libcoreclr.so mmap area
35139 0xe278ade000 0xe278ae4000 24 rw- none libcoreclr.so mmap area
35116 0xe292747000 0xe29279a000 332 r-x none libnetwork.so_seg0ro
35117 0xe29299a000 0xe29299d000 12 rw- none libnetwork.so_seg1rw
35118 0xe29299d000 0xe2929a3000 24 rw- none libnetwork.so_seg2rw
35099 0xf2a6aad000 0xf2a6ce0000 2252 r-x none libstdc++.so.6.0.32_seg0ro
35100 0xf2a6ce0000 0xf2a6cee000 56 rw- none libstdc++.so.6.0.32_seg1rw
35101 0xf2a6cee000 0xf2a6cf6000 32 rw- none libstdc++.so.6.0.32_seg2rw
35111 0x115c0625000 0x115c0689000 400 r-x none libhostpolicy.so_seg0ro
35112 0x115c0689000 0x115c068a000 4 rw- none libhostpolicy.so_seg1rw
35105 0x130d28a3000 0x130d28c2000 124 r-x none libgcc_s.so.1_seg0ro
35106 0x130d28c2000 0x130d28c3000 4 rw- none libgcc_s.so.1_seg1rw
35097 0x14b2a871000 0x14b2a88b000 104 r-x none haiku_seg0ro
35098 0x14b2a88b000 0x14b2a88c000 4 rw- none haiku_seg1rw
35123 0x1849834a000 0x184983b0000 408 none libcoreclr.so mmap area
35148 0x184983b2000 0x18498a60000 6840 none libcoreclr.so mmap area
35161 0x18498a62000 0x1851733a000 2073440 none libcoreclr.so mmap area
35113 0x1851733a000 0x18517a07000 6964 r-x none libcoreclr.so_seg0ro
35114 0x18517a07000 0x18517a40000 228 rw- none libcoreclr.so_seg1rw
35115 0x18517a40000 0x18517a8c000 304 rw- none libcoreclr.so_seg2rw
35102 0x19c4a2ce000 0x19c4a3de000 1088 r-x none libroot.so_seg0ro
35103 0x19c4a3de000 0x19c4a3ec000 56 rw- none libroot.so_seg1rw
35104 0x19c4a3ec000 0x19c4a3f4000 32 rw- none libroot.so_seg2rw
35093 0x1af42fe0000 0x1af42ffd000 116 r-x none runtime_loader_seg0ro
35094 0x1af42ffd000 0x1af42ffe000 4 rw- none runtime_loader_seg1rw
35140 0x1c4ab3f0000 0x204ab3f0000 268435456 none libcoreclr.so mmap area
35141 0x20557dbb000 0x205ec8e2000 2436252 none libcoreclr.so mmap area
35145 0x2072e530000 0x2072e536000 24 rw- none libcoreclr.so mmap area
35146 0x2076ea14000 0x2076ee65000 4420 r--S none libcoreclr.so mmap area
35152 0x207c2dc4000 0x207c31c4000 4096 none libcoreclr.so mmap area
35153 0x207d598a000 0x207d599a000 64 rw- none libcoreclr.so mmap area
35159 0x207dca1f000 0x207dca21000 8 r--S none libcoreclr.so mmap area
35162 0x207dcf16000 0x207dcf1f000 36 r--S none libcoreclr.so mmap area
35171 0x207dcf7f000 0x207dcf97000 96 rw- none rld heap
35172 0x207dd3fb000 0x207dd413000 96 rw- none rld heap
35121 0x207dd783000 0x207dd797000 80 r-x none libunwind.so.1.0_seg0ro
35122 0x207dd797000 0x207dd798000 4 rw- none libunwind.so.1.0_seg1rw
35173 0x24de71fd000 0x24de9089000 31280 r--S none libicuuc.so.73 mmap area
35119 0x25eb3663000 0x25eb366e000 44 r-x none libbsd.so_seg0ro
35120 0x25eb366e000 0x25eb366f000 4 rw- none libbsd.so_seg1rw
35108 0x109733314000 0x1097336b4000 3712 rw- none heap
35135 0x7f2759d15000 0x7f2759d5a000 276 rw-s none pthread func_3153_stack
35130 0x7f3aea4a7000 0x7f3aea4ec000 276 rw-s none pthread func_3152_stack
35125 0x7f86f626e000 0x7f86f62b3000 276 rw-s none pthread func_3151_stack
35090 0x7fa005ad3000 0x7fa005ad7000 16 rw-k full user area
35144 0x7fda98ac7000 0x7fda98b0c000 276 rw-s none pthread func_3155_stack
35138 0x7fe7ad509000 0x7fe7ad54e000 276 rw-s none pthread func_3154_stack
35091 0x7ff51515c000 0x7ff516162000 16408 rw-s none haiku_3150_stack
35092 0x7fff3176b000 0x7fff31773000 32 r-xSk full commpage
Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel
Semaphores:
ID Count Last Holder Name
------------------------------------------------------------