MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

.NET Framework support dropped from v5.0

Open wazzamatazz opened this issue 1 year ago • 4 comments

Describe your question

I note that support for all frameworks except for net8.0 is being dropped from MQTTnet 5.0. In the upgrade guide it mentions that one of the reasons for dropping support is to make use of types such as Memory<T> and Span<T>. However, these types are already available on earlier versions of .NET and .NET Framework via the System.Memory package.

I understand the desire to drop support for older frameworks but .NET Framework is still supported by Microsoft with no support end date currently scheduled for .NET Framework 4.7 and above (see here). With this in mind it would be great if the MQTTnet client could continue to support .NET Framework in some way even if server support was going to end.

Which project is your question related to?

  • Client
  • ManagedClient

wazzamatazz avatar Sep 24 '24 05:09 wazzamatazz

Yes, PLEASE include support for .NET Framework 4.7 and above. This is very important for me, too.

TimMakins avatar Sep 24 '24 10:09 TimMakins

@wazzamatazz @TimMakins you can continue using v4, as it "will receive hotfixes but no new features."

Span<T> was only one example, there are other areas such Certificate Management that are only available in .NET7+, and there are also many C# features not available for older target frameworks.

just for curiosity: What's the reason to keep using .NET Framework 4.7.2 in a client-side application?

rido-min avatar Sep 24 '24 14:09 rido-min

In my case, it's because of some upstream dependencies that mean that we can't move off of .NET Framework entirely.

We integrate with a lot of industrial process systems and in some cases (particularly with older systems) the vendor SDKs explicitly only support .NET Framework because they make extensive use of features like AppDomains.

wazzamatazz avatar Sep 24 '24 14:09 wazzamatazz

In my case, it is because I use Visual Basic.Net to create Windows Forms Desktop applications, using .NET Framework 4.8. To move over to Net 8.0 would mean converting everything to C# and re-writing tens of thousands of lines of code, plus coping with the many significant changes that .NET Framework 4.8 > Net 8.0 involves.

TimMakins avatar Sep 24 '24 16:09 TimMakins

My use-case is a visual studio extension, it requires using 4.7.2.

ArcadePlayer1999 avatar Oct 24 '24 04:10 ArcadePlayer1999

Version 4 will still be around and receive bug fixes and probably some features.

chkr1011 avatar Oct 26 '24 09:10 chkr1011

Great, good to know it will still get bug fixes, etc.

I apologize if this is stated somewhere - is it possible to use the 4.x client with a 5+ server?

ArcadePlayer1999 avatar Oct 30 '24 19:10 ArcadePlayer1999

I apologize if this is stated somewhere - is it possible to use the 4.x client with a 5+ server?

Yes, it works. The underlying MQTT protocol is the same.

chkr1011 avatar Feb 10 '25 16:02 chkr1011