Skip to content

Commit

Permalink
Document --property option (#35936)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdykstra committed Jun 30, 2023
1 parent 7a4fb68 commit 95df35e
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions docs/core/tools/dotnet-build.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -18,10 +18,12 @@ dotnet build [<PROJECT>|<SOLUTION>] [-a|--arch <ARCHITECTURE>]
[-c|--configuration <CONFIGURATION>] [-f|--framework <FRAMEWORK>]
[--force] [--interactive] [--no-dependencies] [--no-incremental]
[--no-restore] [--nologo] [--no-self-contained] [--os <OS>]
[-o|--output <OUTPUT_DIRECTORY>] [-r|--runtime <RUNTIME_IDENTIFIER>]
[--self-contained [true|false]] [--source <SOURCE>] [--tl [auto|on|off]]
[--use-current-runtime, --ucr [true|false]] [-v|--verbosity <LEVEL>]
[--version-suffix <VERSION_SUFFIX>]
[-o|--output <OUTPUT_DIRECTORY>]
[-p|--property:<PROPERTYNAME>=<VALUE>]
[-r|--runtime <RUNTIME_IDENTIFIER>]
[--self-contained [true|false]] [--source <SOURCE>]
[--tl [auto|on|off]] [--use-current-runtime, --ucr [true|false]]
[-v|--verbosity <LEVEL>] [--version-suffix <VERSION_SUFFIX>]
dotnet build -h|--help
```
Expand Down Expand Up @@ -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:<PROPERTYNAME>=<VALUE>`**

Sets one or more MSBuild properties. Specify multiple properties delimited by semicolons or by repeating the option:

```dotnetcli
--property:<NAME1>=<VALUE1>;<NAME2>=<VALUE2>
--property:<NAME1>=<VALUE1> --property:<NAME2>=<VALUE2>
```

- **`-r|--runtime <RUNTIME_IDENTIFIER>`**

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.
Expand Down

0 comments on commit 95df35e

Please sign in to comment.