This is a picture of the code config file path of XML comment file.
When I deploy in Azure, I have a problem that It can't find this XML file
XML comments can be enabled with the following approaches:
Right-click the project in Solution Explorer and select Edit <project_name>.csproj. Manually add the highlighted lines to the .csproj file:
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
public void ConfigureServices(IServiceCollection services)
{
.......//swagger config..
var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
c.IncludeXmlComments(xmlPath);