From 95df35e84fcee5518d6adf2f0575d946a1a2dba8 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Fri, 30 Jun 2023 16:25:39 -0700 Subject: [PATCH] Document --property option (#35936) --- docs/core/tools/dotnet-build.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/docs/core/tools/dotnet-build.md b/docs/core/tools/dotnet-build.md index b084264e70470..6542c8e78e1d9 100644 --- a/docs/core/tools/dotnet-build.md +++ b/docs/core/tools/dotnet-build.md @@ -1,7 +1,7 @@ --- title: dotnet build command description: The dotnet build command builds a project and all of its dependencies. -ms.date: 05/16/2023 +ms.date: 06/23/2023 --- # dotnet build @@ -18,10 +18,12 @@ dotnet build [|] [-a|--arch ] [-c|--configuration ] [-f|--framework ] [--force] [--interactive] [--no-dependencies] [--no-incremental] [--no-restore] [--nologo] [--no-self-contained] [--os ] - [-o|--output ] [-r|--runtime ] - [--self-contained [true|false]] [--source ] [--tl [auto|on|off]] - [--use-current-runtime, --ucr [true|false]] [-v|--verbosity ] - [--version-suffix ] + [-o|--output ] + [-p|--property:=] + [-r|--runtime ] + [--self-contained [true|false]] [--source ] + [--tl [auto|on|off]] [--use-current-runtime, --ucr [true|false]] + [-v|--verbosity ] [--version-suffix ] dotnet build -h|--help ``` @@ -125,6 +127,15 @@ The project or solution file to build. If a project or solution file isn't speci [!INCLUDE [os](../../../includes/cli-os.md)] +- **`-p|--property:=`** + + Sets one or more MSBuild properties. Specify multiple properties delimited by semicolons or by repeating the option: + + ```dotnetcli + --property:=;= + --property:= --property:= + ``` + - **`-r|--runtime `** Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the [RID catalog](../rid-catalog.md). If you use this option with .NET 6 SDK, use `--self-contained` or `--no-self-contained` also. If not specified, the default is to build for the current OS and architecture.