MQTTnet
MQTTnet copied to clipboard
Reopen: nuget version of MQTTnet.Extensions.TopicTemplate is not up to date
I do not have the ability to reopen issues, so per github recommendations I am creating a new one.
Original issue: https://github.com/dotnet/MQTTnet/issues/2055
I have confirmed that the version numbers now match, however when attempting to use the packages with the sample project I get the following:
CS1929 'MqttClientSubscribeOptionsBuilder' does not contain a definition for 'WithTopicTemplate' and the best extension method overload 'TopicTemplateExtensions.WithTopicTemplate(MqttTopicFilterBuilder, MqttTopicTemplate, bool)' requires a receiver of type 'MQTTnet.MqttTopicFilterBuilder' MQTTnet.Samples C:<my project details>\Samples\Client\Client_Subscribe_Samples.cs 47
What I did was pull just that one project from your github repo. I then changed the project references to target the latest versions of the packages on nuget. And then I did a build. I'm attaching a screen shot.
It looks like the MqttClientSubscribeOptionsBuilder WithTopicTemplate extension method was not compiled into the package.
What's the problem with using a MqttTopicFilterBuilder?
I have the same problem.
What's the problem with using a
MqttTopicFilterBuilder?
The "problem" is, that this is from the sample code from the current master branch, so the sample hast to be adapted or there is a bug.
@SeppPenner or can u light us up and show the working code with the MqttTopicFilterBuilder?
Maybe this is not yet released @chkr1011 ?
The issue is that the master examples depend on the master template extension. While unfortunate, it is a one-off and has an easy solution. When you open the full project solution (not just examples), things should work fine.
@SeppPenner I think this can be closed.