Compiler Warning (level 1) CS1589

Unable to include XML fragment 'fragment' of file 'file' -- reason

The syntax (fragment) of a <include> tag, which referenced a file (file), was incorrect for the specified reason.

A malformed line will be placed in the generated XML file.

The following sample generates CS1589:

// CS1589.cs
// compile with: /W:1 /doc:CS1589_out.xml

/// <include file='CS1589.doc' path='MyDocs/MyMembers[@name="test"]/' />   // CS1589
// try the following line instead
// /// <include file='CS1589.doc' path='MyDocs/MyMembers[@name="test"]/*' />
class Test
   public static void Main()

Community Additions