Nswag: How to add XML documentation to .NET Core Swagger?

Created on 4 Jul 2016  路  7Comments  路  Source: RicoSuter/NSwag

I cannot figure out how to add my generated XML doc to the NSwag generation process. Is this supported?

Most helpful comment

All 7 comments

XML documentation is currently not supported for .NET Core because reading/writing XML files has changed for .NET Core... I have to check how to implement this feature for .NET Core

If you lead me to the right direction (current XML doc reader source) i could help implementing it.

Its implemented in the NJsonSchema project which is PCL (so you wont have direct access to file/XML apis)..

https://github.com/NJsonSchema/NJsonSchema/blob/master/src/NJsonSchema/Infrastructure/XmlDocumentationExtensions.cs

I think i already found a solution..

Will be fixed tomorrow

Now it works - thank you.

Was this page helpful?
0 / 5 - 0 ratings