You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove DataSet/DataTable code paths for SerializationFormat.Binary #65140
Following the obsoletion of SerializationFormat.Binary and putting it behind an appcontext switch in .NET 7.0 (#39289), we should remove the code paths which support it, and which contain BinaryFormatter usage.
@Wraith2 more or less, yeah - but with a more gradual approach. For .NET 7.0 I've just merged #65139, which both obsoletes and adds a runtime check to throw - but still allows an appcontext switch to be used to opt into using SerializationFormat.Binary. This issue would remove the code entirely in .NET 8.0, so even the appcontext switch would no longer work.
How would you hit that code path in .NET 10? Isn't the BinaryFormatter implementation removed and you need to add a dependency to that unsafe package and add EnableUnsafeBinaryFormatterSerialization=true?
Activity
stephentoub commentedon Feb 10, 2022
cc: @GrabYourPitchforks
Wraith2 commentedon Feb 11, 2022
Is #39397 what you're looking to do?
roji commentedon Feb 12, 2022
@Wraith2 more or less, yeah - but with a more gradual approach. For .NET 7.0 I've just merged #65139, which both obsoletes and adds a runtime check to throw - but still allows an appcontext switch to be used to opt into using SerializationFormat.Binary. This issue would remove the code entirely in .NET 8.0, so even the appcontext switch would no longer work.
Wraith2 commentedon Feb 12, 2022
Ok. I was just wondering if that one would have saved you from having to do all the work, seems not.
SamMonoRT commentedon Jul 15, 2025
@jeffhandley @adamsitnik - any thoughts if we moved this to 11.0?
jeffhandley commentedon Jul 15, 2025
Totally acceptable to move this to 11.0.
Frulfump commentedon Jul 15, 2025
How would you hit that code path in .NET 10? Isn't the BinaryFormatter implementation removed and you need to add a dependency to that unsafe package and add
EnableUnsafeBinaryFormatterSerialization=true?SamMonoRT commentedon Jul 13, 2026
Moving to Future milestone