How to ignore changes in attribute order in a .NET DataSet (XSD) definition when using SVN?

I use TortoiseSVN to version control my large VB project in Visual Studio 2008. From time to time, when editing one of the many typed datasets, VS feels that it switches the position of the msprop:Generator_ColumnVarNameInTable and msprop:Generator_ColumnPropNameInRow attributes as a NINE THOUSd file location. Sometimes I use a custom sed script to undo it again, but most of the time I just commit it without knowing if there were any real changes.

Can I prevent Visual Studio from interacting with these attributes? Can I complete a specific order? Or do I need some kind of workflow in TSVN to ignore or revert such changes?

Added:
I wrote a small VB.Net Console application that scans strings by sorting attributes. It works only with text, since it is impossible to use the capabilities of parsing xml without significantly increasing the execution time and code size:

I hope someone knows the way around this nonsense, or at least point me to some kind of ready-to-use tool that might help here. If not, I must accept my fate ^^

+4
source share
1 answer

I would add a process that orders a file and calls this process on each preliminary or subsequent construction.
Then he should always create the same file, even if the studio decides to change the file again.

The main problem is to write this tool and find out what elements need to be sorted.

Your idea of ​​returning it might be easier if you write a tool that compares only node elements from two files.

+1
source

Source: https://habr.com/ru/post/1344941/


All Articles