ETA: Visual Studio 2010 VB Express edition exhibits the same behaviour.
ETA: Visual Studio 2010 C# Express edition does NOT exhibit the same behaviour.
In VisualStudio 2008 VB Express edition, I specify the following comments:
''' <summary>
''' ...
''' </summary>
''' <remarks>
''' <include file="Comments.xml" path="Section[@name='Part1']/*" />
''' <include file="Comments.xml" path="Section[@name='Part2']/*" />
''' <include file="Comments.xml" path="Section[@name='Part3']/*" />
''' </remarks>
Public Class MyClass
If I compile the file and examine the .xml, I see that the comments are being included in the reverse order to what I specify ie. Part3 appears before Part2 appears before Part1.
Does anyone know why this is happening?
ETA:
Additional behaviour: If inline comments are interspersed between the external includes, they are all written to the xml first and then the includes (in reverse order)!
Please let there be an option called 'Turn off unintuitive xml comment behaviour'