dotnet / MQTTnet

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
MIT License
4.44k stars 1.06k forks source link

MQTTnet problem with Mono project #1416

Closed AyeshaSadiq7 closed 2 years ago

AyeshaSadiq7 commented 2 years ago

Describe your question

I have a Mono client application that connects with openPDC server to fetch PMU data, I want to publish this data to the MQTT server using the MQTTnet Console publisher.

The publisher is written as a separate class within the same project but when I build mono application using command

"sudo msbuild /p:Configuration=Mono .csproj"

it gives the following error for the MQTTnet.

"The type or namespace name 'MQTTnet' could not be found (are you missing a using directive or an assembly reference?) [/home/ubuntu/....]

I tried changing different versions of MQTTnet. Currently using 3.0.15. Can you please guide which version of MQTTnet is compatible with Mono?

Thank you.

Which project is your question related to?

chkr1011 commented 2 years ago

I have no huge knowledge about Mono and how it works but this library supports netstandard2.0 which should also be supported by Mono. Do you have some trace etc. showing which target platform is used when using the nuget?

chkr1011 commented 2 years ago

Closing this due to inactivity. If new information is available please reopen this ticket.