Publish an ASP.NET Core app

Beginner
Developer
ASP.NET Core
Azure App Service

Publish an ASP.NET Core app using the .NET CLI. Describe the difference between framework-dependent and self-contained deployments. Understand deploying an ASP.NET Core app to Azure.

Learning objectives

By the end of this module, you'll be able to:

  • Describe some of the deployment options available for ASP.NET Core apps.
  • Describe what the dotnet publish command does.
  • Publish an ASP.NET Core app as a framework-dependent deployment.
  • Publish an ASP.NET Core app as a self-contained deployment.

Prerequisites

  • Ability to write C# and Razor code at a beginner level.
  • Ability to use the .NET CLI at a beginner level.
  • Latest .NET SDK installed.
  • Visual Studio Code installed with the following extensions:
    • C# Dev Kit
    • Azure Tools (optional)
  • An Azure subscription (optional).