SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
After buliding packages for ubuntu (using dh_make to create the templates), the libnserial.so is in the "dev" package, while libnserial.so.1 and libnserial.so.1.0 is in the main package. Naturally, to get software working, we shouldn't include the "-dev" package, but just the single binary package.
Checking other packages in Ubuntu shows the same structure for non-mono libraries, so this is the way to go.
The DLL imports need to be modified to use "libnserial.so.1" instead (which is a little contradictory, because the mono docs suggest to use "nserial" where possible, so ".dll" or ".so" is attached depending on the platform. More important is the packaging for native binaries and making mono suit.
We should not use the config file for now that maps the nserial to libnserial.so.1, as some testing has shown that the dll.config file is not always reliably copied by building, and the user should be able to customise this for themselves for their specific project.
After buliding packages for ubuntu (using dh_make to create the templates), the libnserial.so is in the "dev" package, while libnserial.so.1 and libnserial.so.1.0 is in the main package. Naturally, to get software working, we shouldn't include the "-dev" package, but just the single binary package.
Checking other packages in Ubuntu shows the same structure for non-mono libraries, so this is the way to go.
The DLL imports need to be modified to use "libnserial.so.1" instead (which is a little contradictory, because the mono docs suggest to use "nserial" where possible, so ".dll" or ".so" is attached depending on the platform. More important is the packaging for native binaries and making mono suit.
We should not use the config file for now that maps the nserial to libnserial.so.1, as some testing has shown that the dll.config file is not always reliably copied by building, and the user should be able to customise this for themselves for their specific project.