I'm modifying some .vcrpoj
files in .NET but when I save them the formatting changes (which wrecks havoc with my diff tool), the original files look like this:
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
But when I save the changes it looks like this:
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00">
<Platforms>
<Platform
Name="Win32" />
</Platforms>
<ToolFiles></ToolFiles>
I'm using the following XmlWritterSettings
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.IndentChars = ("\t");
settings.Encoding = Encoding.UTF8;
settings.NewLineOnAttributes = true;
Is there a way to define the settings in order to match the format visual studio uses? (I need NewLineOnAttributes
otherwise it's even worse).