Application publishing produces the files and configuration needed to deploy an ASP.NET Core application to a hosting environment. It differs from running the application with dotnet run: publishing prepares the app for a remote server where users can access it. section 27.0
A practical publishing workflow includes:
- Publish the application instead of copying development output. section 27.0
- Choose a hosting arrangement, often placing the application behind a reverse proxy. section 27.0
- For Windows hosting, configure IIS and copy the published application into its hosting folder. section 27.2
Publishing to IIS
A Windows deployment can use IIS as the reverse proxy. Create an IIS application pool and website, apply the configuration required for ASP.NET Core, and copy the published application to IIS’s hosting folder. section 27.2

