Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to diff changed form file - ( .Designer InitializeComponent )

Using Suversion and WinDiff its no problem to branch / merge class-projects and web-projects.

The only kind of project I can never merge are winform projects. The InitializeComponent method is always scrambled after only little changes.

Is there any good way to enable diff / merge for .Designer - files?

EDIT:

I used a 3 way diff like Bert suggested. It made things a lot more easy. But still Winform - files (.designer and .resx ) were not mergeable.

like image 685
Mathias F Avatar asked Dec 21 '25 09:12

Mathias F


1 Answers

We have a different method of ensuring that diffs are a bit more managable. We have a trigger on checkin that will modify the designer files InitializeComponent section into a consistent and ordered manner, so that diffs show the real changes.

we want to split InitializeComponent into 4 sections - creation, layout suspension, setup and layout resuming. Each of these sections are then separately ordered according to the names of the controls.

like image 87
Colin Cassidy Avatar answered Dec 22 '25 23:12

Colin Cassidy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!