From c21491a8c4eec56d371bc0f31e09686f4be7a5c4 Mon Sep 17 00:00:00 2001 From: Tim Paulus Date: Thu, 17 Apr 2025 16:47:59 +0200 Subject: [PATCH] Default build configuration is 'Release' since .NET 8 --- docs/core/deploying/deploy-with-cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/deploying/deploy-with-cli.md b/docs/core/deploying/deploy-with-cli.md index 0cccaf1591397..7485645b780f2 100644 --- a/docs/core/deploying/deploy-with-cli.md +++ b/docs/core/deploying/deploy-with-cli.md @@ -35,7 +35,7 @@ The `` setting of the project file specifies the default target If you want to target more than one framework, you can set the `` setting to multiple TFM values, separated by a semicolon. When you build your app, a build is produced for each target framework. However, when you publish your app, you must specify the target framework with the `dotnet publish -f ` command. -The default **BUILD-CONFIGURATION** mode is **Debug** unless changed with the `-c` parameter. +The default **BUILD-CONFIGURATION** mode is **Release** unless changed with the `-c` parameter. The default output directory of the [`dotnet publish`](../tools/dotnet-publish.md) command is `./bin///publish/`. For example, `dotnet publish -c Release -f net9.0` publishes to `./bin/Release/net9.0/publish/`. However, you can opt in to a simplified output path and folder structure for all build outputs. For more information, see [Artifacts output layout](../sdk/artifacts-output.md).