-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
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.
Reactions are currently unavailable