BinaryFormatter error when Copy/Cut/Paste menu item in DemoConsole application
elachlan opened this issue · comments
.NET version
.NET 9.0: Main branch
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
n/a
Issue description
In DemoConsole test app of Winforms repo, BinaryFormatter error when clicking Copy
/Cut
/Paste
commands for Menu Item.
Steps to reproduce
Test sample: DemoConsole in Winforms repo
After PR #11540, the error System.PlatformNotSupportedException: 'BinaryFormatter serialization and deserialization have been removed.
appears
Before this PR, executing Copy/Cut/Paste menu item would give a different error, the error was
This BinaryFormatter error disappear after add binary Formatter package (Related PR #11741)
We're dependent on BinaryFormatter for CodeDomSerialization and adding the package fixes the issue