I'm trying to publish an ASP.NET Core Web Api application to an Azure Api App feature.
This error started appearing after I checked the "Remove additional files at destination" option:
Andafterthat,Istartedgettingtheerrorandcouldnotgetittoworkanymore.
Thiserroroccurswhentheapptriestofindthe.XMLfileforSwagger.Ihavethefollowingcodeforthis:
//Determinebasepathfortheapplication.varbasePath=PlatformServices.Default.Application.ApplicationBasePath;//CompletepathvarxmlPath=Path.Combine(basePath,"myapp.xml");
// Set the comments path for the swagger json and ui.
options.IncludeXmlComments(xmlPath);
And these are the project settings for XML documentation:
It works perfectly by running local on my machine.
Any ideas, please?