RicoSuter/Namotion.Reflection

How to set custom XML docs path

Open

#23 opened on Oct 31, 2019

View on GitHub
 (13 comments) (1 reaction) (0 assignees)C# (50 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (235 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi,

I'm trying to help with the following issue that generates documentation via NSwag in Azure Functions v2. I know what the problem is but I need to determine where NSwag get's the xml documentation from.

I think it's coming from this package.

In order to solve the issue, I need to be able to set a custom xml file path. In Azure Functions on the server, this is different then the path when you locally develop. So I tracked the code through NSwag to this package and ended up with the method GetXmlDocsPath.

So the ultimate questions are:

  1. Is this the correct line that NSwag is using to obtain the XML file for the documentation?
  2. If so, How can I set a custom path to the XML file in NSwag and then of course here in this package?

Contributor guide