Getting PlatformNotSupportedException from 32Feet.NET using Mono on Linux

I am trying to port my windows service to Linux using Mono. The service uses the 32feet.NET Bluetooth library.

I read this post and this post , and I tried to install these libraries on my computer:

mono-runtime mono-xbuild mono-devel mono-gmcs libbluetooth-dev

but I could not install mono-gmcssince Mono 4 uses mono-mcs. I imported ExternalLibs/Mono etc/NDesk.DBus.dllinto the folder for debugging the project and resolved the exception System.DllNotFoundException: BsSDK. Buy I still could not understand why I get

Unhandled exception: System.PlatformNotSupportedException: No Bluetooth protocol supported.

I tried patch Mono. But I could not do it, is there anyone who could use this library under Linux using Mono?

Thank you for your help.

+4
source share
1 answer

You are on the right track. It depends largely on if you do it against blueZ 4 (which supports 32feet) or blueZ 5 (which does not yet support 32 feet, but mono.bluez )

Here is a complete set of steps for bluez4

0
source

All Articles