I have a ASP.NET Core application that serves it's own endpoints. I also have endpoints to manage basic application functionality (i.e. a health endpoint to check what the machine name is and if it's running locally or on a remote machine) which are provided by internal nuget packages. I currently am using Swashbuckle.AspNetCore to serve API documentation. Within my StartUp file I currently am able to include XML comments within the assembly of my web project like so:
services.AddSwaggerGen(gen =>
{
gen.IncludeXmlComments(
filePath: Path.Combine(AppContext.BaseDirectory, Assembly.GetEntryAssembly()!.GetName().Name + ".xml"),
includeControllerXmlComments: true
);
});
However this does not provide XML comments on routes provided by other libraries that my web project consume. These endpoints still are in my api doc (which I want), but ideally I'd also have xml comments as well. Any thoughts on how to achieve this?