編譯器警告 (層級 1) CS1589
更新:2007 年 11 月
錯誤訊息
無法包含檔案 'file' 的 XML 片段 'fragment' -- reason
參考了檔案 (file) 的 <include> 標記的語法 (fragment) 因指定的 reason 而不正確。
格式不正確的程式行會出現在產生的 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()
{
}
}