liveBook · Manning

Deployment

As explained in ASP.NET Core in Action, 3e

Deployment is the process of installing and configuring an application and its required artifacts in an environment where users can access it.

Deployment installs and configures an application and its required artifacts on an environment where users can access it. Production deployment requires both a server that can run the application and a way to load it there. section 27.0 section 27.1.2

Publishing prepares an ASP.NET Core application for deployment, unlike running it locally with dotnet run. A reverse proxy can then manage the application while exposing it to users. section 27.0

Common deployment approaches include:

  • Use CI/CD to detect version-control changes, build the application, and potentially deploy it with limited human intervention. section 27.1.2
  • Publish from Visual Studio to Azure App Service, IIS, an FTP site, or a local folder. section 27.1.2
  • On Windows, configure an IIS application pool and website, then copy the published application to IIS’s hosting folder. section 27.2

Windows deployment with IIS

Publish the ASP.NET Core application, configure IIS as its reverse proxy, create the application pool and website, and copy the published files into the hosting folder. section 27.2

Figure 27.4 The Publish application screen in Visual Studio 2022. This provides easy options for publishing your application directly to Azure App Service, to IIS, to an FTP site, or to a folder on the local machine.
CH27_F04_Lock3

Use the Visual Studio Publish screen to compare direct destinations such as Azure App Service, IIS, FTP, and a local folder. section 27.1.2

How ASP.NET Core in Action, 3e covers it

How deep it goes
Explains publishing, hosting choices, reverse proxies, CI/CD, and basic IIS setup, while deferring detailed IIS configuration.
Examples
Uses Visual Studio Publish destinations, CI/CD systems, and a Windows IIS application pool, website, and hosting folder.
What it assumes
Assumes familiarity with ASP.NET Core application building and introduces production hosting and deployment requirements.
What you can do after
Operate/configure an ASP.NET Core deployment through Visual Studio, CI/CD, or basic IIS hosting steps.
How it connects
Connects deployment with publishing, reverse proxies, ASP.NET Core hosting, IIS, and continuous integration and delivery.

Also explained in

Compare how 23 books explain deployment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.