How to read XML documentation comments using Roslyn
I would like to be able to read XML documentation comments while parsing C# source code using Roslyn. /// <summary> /// Documentation... /// </summary> I tried setting the ParseDocumentationComments in the ParseOptions, but it doesn't seem to have an effect? var parseOptions = ParseOptions.Default.WithParseDocumentationComments(true); SyntaxTree unit = SyntaxTree.ParseFile(file, parseOptions); You'll need to either: Look at the LeadingTrivia of the syntax that contains the XML doc comments Construct a Compilation , find the Symbol that has the XML doc comment and use the