Skip to content

Remove DataSet/DataTable code paths for SerializationFormat.Binary #65140

Open

Description

@roji

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.

Activity

  1. added this to the Future milestone on Feb 10, 2022
  2. self-assigned this
    on Feb 10, 2022
  3. ghost added
    untriaged
    on Feb 10, 2022
  4. stephentoub commented on Feb 10, 2022

    @stephentoub
    Member
  5. Wraith2 commented on Feb 11, 2022

    @Wraith2
    Contributor

    Is #39397 what you're looking to do?

  6. roji commented on Feb 12, 2022

    @roji
    MemberAuthor

    @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.

  7. Wraith2 commented on Feb 12, 2022

    @Wraith2
    Contributor

    Ok. I was just wondering if that one would have saved you from having to do all the work, seems not.

  8. removed
    untriaged
    on Feb 14, 2022
  9. modified the milestones: Future, 8.0.0 on Oct 20, 2022
  10. modified the milestones: 8.0.0, 9.0.0 on Apr 25, 2024
  11. added
    binaryformatter-migration
    on May 29, 2024
  12. modified the milestones: 9.0.0, 10.0.0 on Aug 26, 2024
  13. SamMonoRT commented on Jul 15, 2025

    @SamMonoRT
    Member

    @jeffhandley @adamsitnik - any thoughts if we moved this to 11.0?

  14. jeffhandley commented on Jul 15, 2025

    @jeffhandley
    Member

    Totally acceptable to move this to 11.0.

  15. Frulfump commented on Jul 15, 2025

    @Frulfump

    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?

  16. modified the milestones: 10.0.0, 11.0.0 on Jul 15, 2025
  17. SamMonoRT commented on Jul 13, 2026

    @SamMonoRT
    Member

    Moving to Future milestone

  18. modified the milestones: 11.0.0, Future on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Databinaryformatter-migration

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions