From f887ea81f8a8a8a434309c00a480b1e12ddf1208 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 2 Dec 2020 16:25:07 -1000 Subject: [PATCH] how to pub xml files (#20847) * how to pub xml files * how to pub xml files * Update aspnetcore/host-and-deploy/index.md Co-authored-by: Luke Latham * how to pub xml files Co-authored-by: Luke Latham --- aspnetcore/host-and-deploy/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aspnetcore/host-and-deploy/index.md b/aspnetcore/host-and-deploy/index.md index 180260c1f0..c53daec4f0 100644 --- a/aspnetcore/host-and-deploy/index.md +++ b/aspnetcore/host-and-deploy/index.md @@ -23,6 +23,17 @@ 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. +## 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: + +```xml + + + +``` + ### Folder contents The *publish* folder contains one or more app assembly files, dependencies, and optionally the .NET runtime.