Description
I tried to generate a nativeaot program and got an error when running it
error message:
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 AsyncIO.Windows.Socket.Listen(Int32) + 0x36 at NetMQ.Core.Transports.Tcp.TcpListener.SetAddress(String) + 0x1b2 at NetMQ.Core.SocketBase.Bind(String) + 0x286 at NetMQ.NetMQSocket..ctor(ZmqSocketType, String, NetMQSocket.DefaultAction) + 0x2ae