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
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.
The text was updated successfully, but these errors were encountered:
Starting with .NET 8,
BinaryFormatter
throwsNotSupportedException
across nearly all project types, including console applications (except Windows Forms and WPF). This run-time change is the next stage of theBinaryFormatter
obsoletion plan, in whichBinaryFormatter
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-enableBinaryFormatter
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.The text was updated successfully, but these errors were encountered: