charlesdevandiere / xmldoc2md

Tool to generate markdown from C# XML documentation
https://charlesdevandiere.github.io/xmldoc2md/
MIT License
47 stars 18 forks source link

Error generating `index.md` when type does not have an explicit namespace. #28

Closed TimothyMakkison closed 3 months ago

TimothyMakkison commented 1 year ago

Line File.WriteAllText(Path.Combine(@out, $"{indexPageName}.md"), indexPage.ToString()); in program generates the error: Unable to generate documentation: Object reference not set to an instance of an object. when converting a type without a namespace.

To reproduce create a type outside of a namespace scope and run this tool.

public class MyClass
{
}
charlesdevandiere commented 3 months ago

Fixed in #35 for v5.0.0