Fix S4027 FP: BinaryFormatter. Serialization constructors are obsolete and should not be required #8560
Closed
3 tasks done
Labels
Milestone
Description
In .net 8 "All externally visible (public or protected) serialization ctors: .ctor(SerializationInfo, StreamingContext)." are marked as obsolete (Source).
We need to remove the serialization constructor from the list of required constructors for exceptions.
Repro steps
Expected behavior
The serialization constructor should not be mandatory.
Actual behavior
A missing serialization constructor raises S4027.
Todos:
Known workarounds
Suppress S4027
See also
#8377
The text was updated successfully, but these errors were encountered: