Skip to content

Commit d0c5081

Browse files
committed
Address review feedback
1 parent e7e098c commit d0c5081

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

docs/core/tools/dotnet-build.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dotnet build [<PROJECT>|<SOLUTION>|<FILE>] [-a|--arch <ARCHITECTURE>]
2323
[-p|--property:<PROPERTYNAME>=<VALUE>] [-r|--runtime <RUNTIME_IDENTIFIER>]
2424
[--sc|--self-contained] [--source <SOURCE>]
2525
[--tl:[auto|on|off]] [ --ucr|--use-current-runtime]
26-
[-v|--verbosity <LEVEL>] [--bl[:<FILE>]] [--version-suffix <VERSION_SUFFIX>]
26+
[-v|--verbosity <LEVEL>] [-bl|--binaryLogger:<FILE>] [--version-suffix <VERSION_SUFFIX>]
2727
2828
2929
dotnet build -h|--help
@@ -86,6 +86,19 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
8686

8787
- [!INCLUDE [disable-build-servers](../../../includes/cli-disable-build-servers.md)]
8888

89+
- **`-bl|--binaryLogger:<FILE>`**
90+
91+
Enables the binary logger and optionally specifies the output file name.
92+
If no file name is provided, the default is `msbuild.binlog` in the current directory.
93+
94+
The binary log contains detailed build information and can be opened with the
95+
[MSBuild Structured Log Viewer](https://msbuildlog.com).
96+
97+
```dotnetcli
98+
dotnet build --bl
99+
dotnet build --bl:build-log.binlog
100+
```
101+
89102
- **`-f|--framework <FRAMEWORK>`**
90103

91104
Compiles for a specific [framework](../../standard/frameworks.md). The framework must be defined in the [project file](../project-sdk/overview.md). Examples: `net7.0`, `net462`.
@@ -149,19 +162,6 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
149162

150163
- [!INCLUDE [verbosity](../../../includes/cli-verbosity.md)]
151164

152-
- **`--bl[:<FILE>]`**
153-
154-
Enables the binary logger and optionally specifies the output file name.
155-
If no file name is provided, the default is `msbuild.binlog` in the current directory.
156-
157-
The binary log contains detailed build information and can be opened with the
158-
[MSBuild Structured Log Viewer](https://msbuildlog.com).
159-
160-
```dotnetcli
161-
dotnet build --bl
162-
dotnet build --bl:build-log.binlog
163-
```
164-
165165
- **`--version-suffix <VERSION_SUFFIX>`**
166166

167167
Sets the value of the `$(VersionSuffix)` property to use when building the project. This only works if the `$(Version)` property isn't set. Then, `$(Version)` is set to the `$(VersionPrefix)` combined with the `$(VersionSuffix)`, separated by a dash.
@@ -206,10 +206,4 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev
206206

207207
```dotnetcli
208208
dotnet build -p:Version=1.2.3.4
209-
```
210-
211-
- Build a project and its dependencies:
212-
213-
```dotnetcli
214-
dotnet build
215209
```

0 commit comments

Comments
 (0)