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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for