when build with NativeAOT asyncIO iwll throw error
Unhandled exception. System.NotSupportedException: 'AsyncIO.Windows.AcceptExDelegate' is missing delegate marshalling data. This can happen for code that is not compatible with AOT. Inspect and fix AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetForwardDelegateCreationStub(RuntimeTypeHandle) + 0x6d at System.Runtime.InteropServices.PInvokeMarshal.GetDelegateForFunctionPointer(IntPtr, RuntimeTypeHandle) + 0x71 at AsyncIO.Windows.Socket.LoadDynamicMethod[T](Guid) + 0x8c at AsyncIO.Windows.Socket.Listener..ctor(Socket) + 0x44 at
Unhandled exception. System.Net.Sockets.SocketException (0x80004005): at AsyncIO.Windows.Socket.Listener.AcceptInternal(AsyncSocket) + 0x149
when build with NativeAOT asyncIO iwll throw error
Unhandled exception. System.NotSupportedException: 'AsyncIO.Windows.AcceptExDelegate' is missing delegate marshalling data. This can happen for code that is not compatible with AOT. Inspect and fix AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetForwardDelegateCreationStub(RuntimeTypeHandle) + 0x6d at System.Runtime.InteropServices.PInvokeMarshal.GetDelegateForFunctionPointer(IntPtr, RuntimeTypeHandle) + 0x71 at AsyncIO.Windows.Socket.LoadDynamicMethod[T](Guid) + 0x8c at AsyncIO.Windows.Socket.Listener..ctor(Socket) + 0x44 atUnhandled exception. System.Net.Sockets.SocketException (0x80004005): at AsyncIO.Windows.Socket.Listener.AcceptInternal(AsyncSocket) + 0x149