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()
{
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: