HavenDV / H.Pipes

A simple, easy to use, strongly-typed, async wrapper around .NET named pipes.
MIT License
219 stars 26 forks source link

.NET 8 support #38

Closed alexeygritsenko closed 7 months ago

alexeygritsenko commented 7 months ago

Hi, has anyone checked the work on .NET 8? This doesn't work for me

HavenDV commented 7 months ago

https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide Microsoft disabled BinaryFormatter for net8.0, so I released a fix that will use MessagePackFormatter by default for net8.0 and above. But this can cause problems when deserializing object types and some other types

It's based on https://github.com/MessagePack-CSharp/MessagePack-CSharp

alexeygritsenko commented 7 months ago

Good choice, this is what is used in SignalR, thanks!