This documentation is archived and is not being maintained.

Compiler Warning (level 1) CS1584

XML comment on 'member' has syntactically incorrect cref attribute 'invalid_syntax'

One of the parameters passed to a tag for documentation comments had invalid syntax.

The following sample generates CS1584:

// CS1584.cs
// compile with: /W:1 /doc:x.xml
/// <remarks>Test class</remarks>
public class Test
{
   /// <remarks>
   /// Called in <see cref="Test::Main"/>.   // CS1584, try Test.Main
   /// </remarks>
   public static void Test2()
   {
   }

   /// <remarks>Main method</remarks>
   public static void Main()
   {
      Test2();
   }
}
Show: