Closed Junjun-zhao closed 2 months ago
Related: #6267
Application needs to add <EnableUnsafeBinaryFormatterSerialization>True</EnableUnsafeBinaryFormatterSerialization>
.
Project located at: https://github.com/Klocman/Bulk-Crap-Uninstaller
@Klocman just a ping to let you know this issue was reported here for Bull-Crap-Uninstaller
.
Update for the workaround: It works well with the public Nuget package for the application. And app owner is also aware of this change. Closing this issue
.NET version
Dotnet Info:
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes
Verify Scenarios: 1). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.6.24314.10: Pass 2). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.7.24321.3: Fail 3). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.6.24325.8: Fail
Issue description
When run the 3rd party application with the latest .NET 9 build "dotnet-sdk-9.0.100-preview.6.24325.8", it failed to launch with error: System.PlatformNotSupportedException : BinaryFormatter serialization and deserialization have been removed.
Application Name: Bulk-Crap-Uninstaller(WinForms) OS: Windows 10 21H2 CPU: X64 .NET Build Number: dotnet-sdk-9.0.100-preview.6.24325.8 App or Source Checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2110654
Steps to reproduce
App Repro steps: 1.Set System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization switch to True and set runtime version to .NET 9.0.100-preview.6.24325.8 in BCUninstaller.runtimeconfig.json.
2.Launching BCUninstaller.exe
Expected Result: Close successfully.
Actual Result: App is crashed.
Exception type : System.PlatformNotSupportedException
Known Workarounds Yes.
Tried the following steps:
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
@dotnet-actwx-bot @dotnet/compat