From 73a40752b566367a59b6fa970c6a99bcc342817a Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Wed, 16 Nov 2022 09:28:03 -0800 Subject: [PATCH] Add section "To run the published app locally" (#27653) --- aspnetcore/host-and-deploy/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aspnetcore/host-and-deploy/index.md b/aspnetcore/host-and-deploy/index.md index ff8b4aa6a7..d952ee8948 100644 --- a/aspnetcore/host-and-deploy/index.md +++ b/aspnetcore/host-and-deploy/index.md @@ -22,6 +22,10 @@ In general, to deploy an ASP.NET Core app to a hosting environment: The [dotnet publish](/dotnet/core/tools/dotnet-publish) command compiles app code and copies the files required to run the app into a *publish* folder. When deploying from Visual Studio, the `dotnet publish` step occurs automatically before the files are copied to the deployment destination. +### Run the published app locally + +To run the published app locally, run `dotnet .dll` from the *publish* folder. + ## Publish settings files `*.json` files are published by default. To publish other settings files, specify them in an [``](/visualstudio/msbuild/common-msbuild-project-items#content) element in the project file. The following example publishes XML files: