.csproj file is in a xml format and it seems Visual Studio is adding there elements in random order. Perforce merge treats .csproj file as text file (order matters). This leads to a merging nightmare. Is there a way how to either:

1. (Preferred) Force perforce merge to treat .csproj file like xml file (order of nodes doesn't matter)
2. Force Visual Studio to keep some sort of ordering of xml elements inside .csproj (plugin perhaps?)

**UPDATE**

There seems to be feature request for it already - <http://p4ideax.com/ideas/585/intelligent-support-for-xml-when-doing-merges> though it doesn't have enough votes (yet).

**UPDATE 2** 
Seems perforce folks have moved their voting system, new url is
<https://perforce.ideas.aha.io/ideas/P4D-I-77>