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
Code To Reproduce (Issue2648.ps1)
Code To Reproduce (Issue2648-designer.ps1)
Screenshot