Open DataTraveler1 opened 1 year ago
The Before/After labels on the screenshot showing the differences are accidentally reversed.
I want to mention that I cannot reproduce this in Visual Studio even though they use the same code to parse and generate the code. It must be something with the form editor in PSScriptPad.
Describe the bug
Form Designer can sometimes mangle the designer code on a WinForms project
Expected behavior
Clicking 'Save' on an unchanged WinForm project within Form Designer should not change any of the code
Actual behavior
Clicking 'Save' on an unchanged WinForm project within Form Designer may change some of the code
Version
Form Designer 2024.7.2
Steps to Reproduce
List of changes observed after clicking Save
below figure shows the changes that occurred on line 74 & 82![image](https://github.com/ironmansoftware/issues/assets/537287/5a6b07f5-fbb2-4c8a-a528-28e77b8781ab)
Code To Reproduce (Issue2648.ps1)
Code To Reproduce (Issue2648-designer.ps1)
Screenshot