Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
terrajobst opened this issue Nov 7, 2023 · 0 comments
Open

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

terrajobst opened this issue Nov 7, 2023 · 0 comments

Comments

@terrajobst
Copy link
Member

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.

@dotnet dotnet locked as resolved and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant