Standard-Toolkit
Standard-Toolkit copied to clipboard
[Bug]: BinaryFormatter is deprecated due to possible security risks and will be removed with .NET 9. If you wish to continue using it, set property "GenerateResourceWarnOnBinaryFormatterUse" to false.
Severity Code Description Project File Line Warning MSB3825 Resource "imageList1.ImageStream" of type "System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" is deserialized via BinaryFormatter at runtime. BinaryFormatter is deprecated due to possible security risks and will be removed with .NET 9. If you wish to continue using it, set property "GenerateResourceWarnOnBinaryFormatterUse" to false. More information: https://aka.ms/msbuild/net8-binaryformatter Ribbon Gallery 2022 Z:\GitHub\Krypton-Suite\Standard-Toolkit-Demos\Source\Krypton Ribbon Examples\Ribbon Gallery\Form1.resx 1
Would this also affect the planned theme binary import feature?
the issue is opened also in the dotnet/winforms git https://github.com/dotnet/winforms/issues/9701#issuecomment-1803290602
If you need to run the code in .net9 without changing the sources you can add this on the Toolkit project files
<PropertyGroup> <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> <EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization> <NoWarn>$(NoWarn);SYSLIB0011</NoWarn> <GenerateResourceWarnOnBinaryFormatterUse>false</GenerateResourceWarnOnBinaryFormatterUse> </PropertyGroup>
Angelo
Remove the errant resx file, and then checked that the designer still works: