Search code examples
asp.net-web-apiasp.net-web-api-helppages

anyone use swagger for web api documentation see this error at runtime?


Please enable "XML documentation file" in project properties with default (bin\EnterpriseServices.XML) value or edit value in App_Start\SwaggerNet.cs


Solution

  • Yes, from the git documentation

    Enable "XML documentation file" and accept the default value, or specify a custom value (i.e. App_Data\Docs.XML), in the Web API's properties | Build menu (Alt+Enter). If you specify a custom value, you will need to edit the App_Start\SwaggerNet.cs file.

    This means, go to your project's Properties > Build > Output Then check the box for "XML documentation file" You can either accept the default or specify your own. If you specify a custom value, you will need to edit the App_Start\SwaggerNet.cs file