Compiler Warning (level 1) CS1574
XML comment on 'construct' has syntactically incorrect cref attribute 'name'
A string passed to a cref tag, for example, within an <exception> tag, referred to a member that is not available within the current build environment. The string that you pass to a cref tag must be the syntactically correct name of a member or field.
For more information, see Recommended Tags for Documentation Comments.
The following sample generates CS1574:
// CS1574.cs
// compile with: /W:1 /doc:x.xml
using System;
/// <exception cref="System.Console.WriteLin">An exception class.</exception> // CS1574
// instead, uncomment and try the following line
// /// <exception cref="System.Console.WriteLine">An exception class.</exception>
class EClass : Exception
{
}
class TestClass
{
public static void Main()
{
try
{
}
catch(EClass)
{
}
}
}
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