-
Notifications
You must be signed in to change notification settings - Fork 222
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
Fix S3925 FP: serialization infrastructure breaking change in .NET 8 #8065
Comments
Hi @IeuanWalker! I think the warning that you are experiencing is caused by this .Net 8 breaking change. Do you need your custom exception type to be serializable? If not, you can follow the recommended action (see "If you're creating a custom System.Exception-derived type" section), and remove the |
thanks @cristian-ambrosini-sonarsource, thats good to know 🙂 |
This is not working @cristian-ambrosini-sonarsource
It still triggers a "S3925:"ISerializable" should be implemented correctly" that only can be solved by adding a suppression. |
The |
Cannot get rid of warning S3925 with these recommendations (also documented here https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0051). |
I have this custom exception -
Retarged the application from .net 7 to 8, i get this warning -
Removing the last method, i then get this warning -
The text was updated successfully, but these errors were encountered: