Microsoft Visual Studio uses XML to save its .vcproj
project files. So diffing XML project files should be easily.
Unfortunately, if you change any of the project file's properties, Visual Studio insists on randomly shuffling the XML nodes of the project file! This makes textual diffing and merging of project file changes basically impossible. Changing one compiler setting can make my visual diff tool think I've changed 50% of the lines in the file! I've even tried some XML diff tools, but they just show a more structured view of the same mess.
Does anyone have any suggestions for maintaining .vcproj
files in source control? Or a way to convince Visual Studio to not rearrange the XML nodes in the .vcproj
file?
(I have also investigated using tools like CMake to generate .vcproj
files from a more diff-friendly text file, but CMake has its own problems.)