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.