nikeee / TeamSpeak3QueryApi

.NET wrapper for the TeamSpeak 3 Query API
https://nikeee.github.io/TeamSpeak3QueryAPI
GNU General Public License v3.0
60 stars 16 forks source link

Migrate to more recent .NET version #75

Open nikeee opened 3 years ago

nikeee commented 3 years ago

What benefits could we have when migrating to a more recent .NET version (most likely .NET 6)?

nikeee commented 3 years ago
MaximilianAst commented 3 years ago
ceeno2k commented 3 years ago
nikeee commented 2 years ago

That response parser that uses reflection could be re-written to use a source generator.

nikeee commented 2 years ago

With TS5 around the corner, it is questionable if some of the work is worth investing. I doubt that TS5 will use the same crappy protocol. At least I hope that they will migrate to something more sane, like JSON-RPC.

Splamy commented 2 years ago

TS5 is only a client rework, the server is the same.

nikeee commented 2 years ago

That's what I heard as well, but is that assured?

It would actually be pretty pointless, if they'd just copy some UI stuff from discord. So I am assuming that some server functionality will be added as well.

Splamy commented 2 years ago

They keep a lot vague, but I was in the TS5 beta and the client connects just fine to TS3 servers. I guess this will be the targeted path of them. It's less work and they won't split their already shrinking userbase in half with this change. They most likely will just add supplementary commands like they did in the past with notifychannelpermhints and notifyclientpermhints to improve the TS5 UI but keep it on the old protocol.

EDIT: also some .net advice, as long as you still distribute your library as a nuget package you can upgrade your project to net6, enjoy (almost) all of the benefits and still target netstandard2.0. This change will only require contributors to have the .net6 sdk, not your endusers. You can also polyfill a lot of features into netstandard2.0 since a lot of stuff is just in the compiler, not runtime

nikeee commented 2 years ago

Could we still target .NET Standard 1.3? I know it's old, but there are a lot of users using .NET FW.

I'll evaluate if we can target Standard 2.0 and use more recent .NET features.

Splamy commented 2 years ago

Yeah, should also work, you're basically just limiting your access to the 'nice' newer apis, but other than that probably no problems.