Login | Sign Up
ErrorKey - Search engine for Error codes and messages     
  XML:C# .Net Compiler Errors and Warnings  [ 21 result(s) ]
MICROSOFT 
  Compiler Error CS1569  -  MICROSOFT
Error generating XML documentation file 'Filename' ('reason') When attempting to write the XML documentation to the file named in the message, an error occurred for the reason specified. The reason may be something like "network drive not found," or "access denied." Often, the reason will suggest what needs to be done to correct the error. For example, if the error says "access denied," you would verify that you have write permission on the file. Example // 1569a.cs // compile with: /doc:CS1569.xml // post-build command: attrib +r CS1569.xml class Test { /// Test. public static void Main() {} } The previous sample generated an .xml file that was then set to read only. This sample attempts to write to the same file. The following sample generates CS1569. // CS1569.cs // compile with: /doc:CS1569.xml // CS1569 expected class Test { /// Test. public static void Main() {} }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 1) CS1580  -  MICROSOFT
Invalid type for parameter 'parameter number' in XML comment cref attribute When attempting to reference an overload form of a method, the compiler detected a syntax error. Typically, this indicates that the parameter name, and not the type, was specified. A malformed line will appear in the generated XML file. The following sample generates CS1580: // CS1580.cs // compile with: /W:1 /doc:x.xml using System; /// // CS1580 // try the following line instead // /// public class MyClass { /// help text public static void Main() { } /// help text public void Test(int i) { } /// help text public void Test(char i) { } }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 1) CS1598  -  MICROSOFT
XML parser could not be loaded for the following reason: 'reason'. The XML documentation file 'file' will not be generated. The /doc option was specified, but the compiler could not find and load msxml3.dll. Make sure that the file msxml3.dll is installed and registered.
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 4) CS1712  -  MICROSOFT
Type parameter 'type parameter' has no matching typeparam tag in the XML comment on 'type' (but other type parameters do) The documentation of a generic type is missing a typeparam tag. For more information, see (C# Programming Guide). Example The following code generates warning CS1712. To resolve this error, add a typeparam tag for the type parameter S. // CS1712.cs // compile with: /doc:cs1712.xml using System; class Test { public static void Main() {} /// This is the j parameter. /// This is the T type parameter. public void bar(int j) {} // CS1712 }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 1) CS1584  -  MICROSOFT
XML comment on 'member' has syntactically incorrect cref attribute 'invalid_syntax' One of the parameters passed to a tag for documentation comments has invalid syntax. For more information, see Recommended Tags for Documentation Comments (C# Programming Guide). Example The following sample generates CS1584. // CS1584.cs // compile with: /W:1 /doc:CS1584.xml /// Test class public class Test { /// Called in . // CS1584 // try the following line instead // /// Called in . public static void Test2() {} /// Main method public static void Main() {} }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 2) CS1587  -  MICROSOFT
XML comment is not placed on a valid language element Recommended tags for documentation comments are not allowed on all language elements. For example, a tag is not allowed on a namespace. For more information on XML comments, see Recommended Tags for Documentation Comments (C# Programming Guide). Example The following sample generates CS1587: // CS1587.cs // compile with: /W:2 /doc:x.xml /// test // CS1587, tag not allowed on namespace namespace MySpace { class MyClass { public static void Main() { } } }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 1) CS1581  -  MICROSOFT
Invalid return type in XML comment cref attribute When attempting to reference a method, the compiler detected an error due to an invalid return type. Example The following sample generates CS1581: // CS1581.cs // compile with: /W:1 /doc:x.xml /// help text public class MyClass { /// help text public static void Main() { } /// help text public static explicit operator int(MyClass f) { return 0; } } /// // CS1581 // try the following line instead // /// public class MyClass2 { }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 4) CS1591  -  MICROSOFT
Missing XML comment for publicly visible type or member 'Type_or_Member' The /doc compiler option was specified, but one or more constructs did not have comments. The following sample generates CS1591: // CS1591.cs // compile with: /W:4 /doc:x.xml /// text public class Test { // /// text public static void Main() // CS1591, remove "//" from previous line { } }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 2) CS1572  -  MICROSOFT
XML comment on 'construct' has a param tag for 'parameter', but there is no parameter by that name When using the /doc compiler option, a comment was specified for a parameter that does not exist for the method. Change the value passed to the name attribute or remove one of the comment lines. The following sample generates CS1572: // CS1572.cs // compile with: /W:2 /doc:x.xml /// help text public class MyClass { /// Used to indicate status. /// Used to indicate status. /// ??? // CS1572 public static void MyMethod(int Int1, char Char1) { } /// help text public static void Main () { } }
C# .Net Compiler Errors and Warnings
Comments
 
  Compiler Warning (level 2) CS1571  -  MICROSOFT
XML comment on 'construct' has a duplicate param tag for 'parameter' When using the /doc compiler option, multiple comments were found for the same method parameter. Remove one of the duplicate lines. The following sample generates CS1571: // CS1571.cs // compile with: /W:2 /doc:x.xml /// help text public class MyClass { /// Used to indicate status. /// An initial. /// Used to indicate status. // CS1571 public static void MyMethod(int Int1, char Char1) { } /// help text public static void Main () { } }
C# .Net Compiler Errors and Warnings
Comments
 
 

 
C# .Net Compiler Errors and Warnings (21)
 
  Prev   1  2  3  Next