coverlet-coverage / coverlet

Cross platform code coverage for .NET
MIT License
2.99k stars 386 forks source link

remove serialization of CoverletException #1698

Open Bertk opened 2 months ago

Bertk commented 2 months ago

BinaryFormatter removed from .NET 9

SYSLIB0051: Legacy serialization support APIs are obsolete

If you created a custom type derived from System.Exception, consider whether you really need it to be serializable. It's likely that you don't need it to be serializable, as exception serialization is primarily intended to support remoting, and support for remoting was dropped in .NET Core 1.0.