You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from .Net 9.0 RC1 (9.0.100-rc.1.24380.1)the "missing DesignerSerializationVisibility" is treated as an error: WFO1000 for Properties where a default value is not provided.
To suppress all the WFO1000 errors in the project, add a property to your project file:
[System.Diagnostics.CodeAnalysis.SuppressMessage("WinForms Security", "WFO1000", Justification = "No Error on forms")]
public partial class Form1 : Form
{
public IBankIcon? CurrentBank { get; private set; }
public Form1()
Activity
ramoneeza commentedon Sep 20, 2024
This is making a HUGE problem when using Forms that are called from other Forms as child ones. When using "Forms" that error should be excluded.

ramoneeza commentedon Sep 20, 2024
A workarround:
[System.Diagnostics.CodeAnalysis.SuppressMessage("WinForms Security", "WFO1000", Justification = "No Error on forms")]
public partial class Form1 : Form
{
public IBankIcon? CurrentBank { get; private set; }
public Form1()
AngeloCresta commentedon Oct 8, 2024
Treated here:
#42724
I close this one.