编译器警告(等级 1)CS1589
更新:2007 年 11 月
错误消息
无法包括文件“file”的 XML 片段“fragment”-- reason
由于指定的 reason,引用文件 (file) 的 <include> 标记的语法 (fragment) 不正确。
格式不正确的行将放置在生成的 XML 文件中。
下面的示例生成 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()
{
}
}