I have a problem with the Swagger UI (or the swagger.json file specifically) not being updated when I deploy my code to the server. If I go to the Swagger UI page, the server gives me an old version of the docs.
Everything works locally, so the problem must be related to the deployment process or IIS.
Any ideas on what might cause this, and how I can fix it?
I have tried the following:
- Deleted the XML-comments file generated by Web API and regenerated it
- Restarted the IIS site on the server
- Deleted all files in the site and redeployed
- Numerous redeployments
(using Swashbuckle for .NET Framework, not .NET Core)