Publish an ASP.NET web app - Visual Studio (Windows) (original) (raw)

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

This article supports ASP.NET and ASP.NET Core.

Note

This article covers manual deployment, which is great for quickly getting something up and running, but for larger projects and production scenarios, you might want to set up a deployment pipeline. You can use GitHub Actions or Azure DevOps Pipelines to set up automatic deployments with continuous integration for such scenarios.

Prerequisites

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

If you've already installed Visual Studio:

Get started

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

Screenshot showing the Publish option.

If you're publishing this web app for the first time, next you see the Publish wizard.

Screenshot showing the Publish wizard, showing the available publish targets.

Note

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

Next steps

Manage settings for your web application deployment. By managing settings, you can control the .NET deployment options, as well as behaviors such as how to handle existing files that are not part of the deployment process at the deployment destination. See Manage web deployment settings.