Why is the WinForms editor causing so much code change?

86 Views Asked by At

I open the WinForms designer and I make a simple change like changing the button text. After saving, a lot of unintended code changes occur:

enter image description here

enter image description here

enter image description here

I have the <ForceDesignerDpiUnaware>true</ForceDesignerDpiUnaware> configuration option in my project file so the location of the elements isn't changing, just some of the syntax as shown in the images above. Why is this happening and what can I do to avoid this?

0

There are 0 best solutions below