Skip to content

.NET 8 reaches next step in deprecation of BinaryFormatter #284

@terrajobst

Description

@terrajobst

Starting with .NET 8, BinaryFormatter throws NotSupportedException across nearly all project types, including console applications (except Windows Forms and WPF). This run-time change is the next stage of the BinaryFormatter obsoletion plan, in which BinaryFormatter will eventually be removed from .NET.

Note

Should you need to continue using BinaryFormatter, you can set a compatibility switch in your project file to re-enable BinaryFormatter functionality. See the .NET 8 breaking change notification for more details.

Note

Please note that there is no change planned for .NET Framework.

The reason is that BinaryFormatter has many security considerations, which makes the API inherently prone to security issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions