websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

Net6

Open emwanwei163 opened this issue 3 years ago • 4 comments

.NET 6 support

emwanwei163 avatar Oct 14 '22 12:10 emwanwei163

This would be great to get merged in. Supports older .NET Framework and very current .NET (Core). I'm hitting an exception of:

System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.Action`4.BeginInvoke(T1 arg1, T2 arg2, T3 arg3, T4 arg4, AsyncCallback callback, Object object)
   at WebSocketSharp.WebSocket.closeAsync(CloseEventArgs e, Boolean send, Boolean receive, Boolean received)
   at WebSocketSharp.WebSocket.CloseAsync(CloseStatusCode code)

Which is caused due to the outdated BeginInvoke usages.

I notice all these other issues mentioned the same problem. Maybe it's time for a fix?

https://github.com/sta/websocket-sharp/issues/412 https://github.com/sta/websocket-sharp/issues/473 https://github.com/sta/websocket-sharp/issues/487 https://github.com/sta/websocket-sharp/issues/601 https://github.com/sta/websocket-sharp/issues/652

schodemeiss avatar Dec 15 '22 08:12 schodemeiss

@sta any updates?

Misiu avatar Mar 21 '23 13:03 Misiu

I'd like to add in my vote for this - I recently upgraded a project that I rely on to .net 6 and am running into issues.

DavidDBD avatar Jul 06 '23 11:07 DavidDBD

I think it's now between updating backward compatibility only or moving to the newer compatibility but losing older device support.

Or possibly updating both versions simultaneously in the future. Not all devices or IDE's support Net6 yet unfortunately. Maybe another 5-10 years.

CosmicStud avatar Jul 06 '23 20:07 CosmicStud