How to publish API in folder to pc
ublish Web API from Visual Studio
To publish ASP.NET web API from Visual Studio, here are the steps,
Build ASP.NET Web API project /solution in Release mode.
Right click on Web API project and click “Publish” menu.
Now open Publish Web pane and choose Profile tab from left tab. There is a “Select or import a public profile” in which you can either choose existing one or create new publish profile as in the following
Now we choose File System in publish method and choose desired location in Target Location