Skip to content

Remove BinaryFormatter uses #1131

Open
Open

Description

@vatsan-madhavan

Related:
https://github.com/dotnet/corefx/issues/38760

BinaryFormatter will be removed in .NET 5. Remove its uses with whatever drop-in replacement is provided in .NET 5.

Activity

  1. added this to the 5.0 milestone on Jul 1, 2019
  2. weltkante commented on Jul 1, 2019

    @weltkante

    Note that this will break drag'n'drop and clipboard comatibility with desktop framework applications for nontrivial content, unless the replacement is able to produce/consume the same binary data.

  3. modified the milestones: 5.0.0, 7.0.0 on Aug 26, 2021
  4. jonko0493 commented on Jan 24, 2024

    @jonko0493

    Looks like this ended up getting punted to the .NET 7 timeline. We're now in .NET 8, though, and this is causing crashes in some applications that rely on WPF (see picoe/Eto#2607). Is there a plan to address this issue beyond just telling applications to use an insecure serializer?

  5. weltkante commented on Jan 24, 2024

    @weltkante

    As far as I'm aware WinForms hasn't switched away from BinaryFormatter clipboard/drag'n'drop usage either, they seem to have pushed it to .NET 9 issue search link. So no, at the moment there is nothing, I would expect WinForms to make this step before WPF since they are usually more active. Its unfortunate that the core/runtime guys are overly eager to warn (and possibly break) people before things are ready.

  6. jonko0493 commented on Jan 24, 2024

    @jonko0493

    Thanks for the reply @weltkante. That makes sense -- for now I suppose we'll just have to disable that break until at least .NET 9. Appreciate the help!

  7. Symbai commented on Feb 10, 2024

    @Symbai
    Contributor

    FYI: Deadline has been set dotnet/runtime#98245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions