PJSIP-PJSUA2-CSharp
PJSIP-PJSUA2-CSharp copied to clipboard
.NET Core support
Thank you so much for your work! Your clear and simple instructions saved my day. I'm trying to use the dll obtained with your instructions in a .NET 5.0 project (or for .NET Core 3.1), but it doesn't work, I immediately get exceptions:
- TypeInitializationException: The type initializer for 'pjsua2PINVOKE' threw an exception.
- TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception
- EntryPointNotFoundException: Unable to find an entry point named 'SWIGRegisterExceptionCallbacks_pjsua2' in DLL 'pjsua2'.
Do you have any idea how to be able to use the dll also in .NET Core projects? Have you tried something like this before?
I tried replacing "/ clr" with "/ clr: netcore" in Common Language Runtime Support, but it doesn't compile the dll anymore. thank you!