I am using nswag to generate the swagger. However the openapi json file is only in memory, you can only access it by starting the application and navigate to the link swagger/v1/swagger.json.
I want the json file to be generated and save physically in the project after every build. How should I achieved this?