Quickstart: Publish an ASP.NET web app

In this article, you'll learn how to publish your first ASP.NET web app to a variety of locations including a local web server such as IIS and a remote cloud environment such as Azure App Service.

The steps in this article are supported for ASP.NET and ASP.NET Core.

Prerequisites

You need Visual Studio installed with the ASP.NET and web development workload.

If you've already installed Visual Studio:

  • Install the latest updates in Visual Studio by selecting Help > Check for Updates.
  • Add the workload by selecting Tools > Get Tools and Features.

Get started

In Solution Explorer, right-click your project and choose Publish.

right-click and publish

If this is your first time publishing this web app, next you see the Publish wizard.

publish wizard - publish targets

Note

Visual Studio filters the list of destinations depending on the type of web app.

Publish your web app to Azure

For detailed steps, see Quickstart: Deploy an ASP.NET web app.