MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

MqttClientFactory not fount in MQTTnet.4.3.6.1152

Open RedForc opened this issue 1 year ago • 2 comments
trafficstars

MQTTnet.MqttClientFactory not fount in MQTTnet.4.3.6.1152

RedForc avatar Aug 28 '24 09:08 RedForc

Is it has been renamed to MQTTnet.MqttFactory?

but the samples code are not updated

RedForc avatar Aug 28 '24 09:08 RedForc

Is it has been renamed to MQTTnet.MqttFactory?

but the samples code are not updated

Checkout the samples under https://github.com/dotnet/MQTTnet/tree/master/Samples, the wiki is for version 3 only.

SeppPenner avatar Aug 28 '24 17:08 SeppPenner

I believe @SeppPenner might have misunderstood, and the issue is not old samples. Steps to reproduce:

  1. Start a new project
  2. Copy the code from one of the linked to samples
  3. Import the NuGet package MQTTnet 4.3.7.1207 (and presumably also 4.3.6.1152 and others)

The IDE will indeed say that The type or namespace name 'MqttClientFactory' could not be found (are you missing a using directive or an assembly reference?)

Geving avatar Oct 21 '24 14:10 Geving

I believe @SeppPenner might have misunderstood, and the issue is not old samples. Steps to reproduce:

1. Start a new project

2. Copy the code from one of the linked to samples

3. Import the NuGet package MQTTnet 4.3.7.1207 (and presumably also 4.3.6.1152 and others)

The IDE will indeed say that The type or namespace name 'MqttClientFactory' could not be found (are you missing a using directive or an assembly reference?)

It's been renamed to MqttFactory...

SeppPenner avatar Oct 21 '24 15:10 SeppPenner

Ah, I understand. The samples are not up to date

SeppPenner avatar Oct 21 '24 16:10 SeppPenner

The samples are now in sync with version 5 of the library. There are also links to the samples of older versions in the Wiki

chkr1011 avatar Jan 07 '25 17:01 chkr1011