Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/core/tools/dotnet-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ms.date: 09/24/2025

```dotnetcli
dotnet build [<PROJECT>|<SOLUTION>|<FILE>] [-a|--arch <ARCHITECTURE>]
[--artifacts-path <ARTIFACTS_DIR>]
[--artifacts-path <ARTIFACTS_DIR>] [-bl|--binaryLogger:<FILE>]
[-c|--configuration <CONFIGURATION>] [--disable-build-servers]
[-f|--framework <FRAMEWORK>] [--force] [--interactive]
[--no-dependencies] [--no-incremental] [--no-restore] [--nologo]
Expand Down Expand Up @@ -81,6 +81,19 @@ Running `dotnet build` is equivalent to running `dotnet msbuild -restore`; howev

- [!INCLUDE [artifacts-path](../../../includes/cli-artifacts-path.md)]

- **`-bl|--binaryLogger:<FILE>`**

Enables the binary logger and optionally specifies the output file name.
If no file name is provided, the default is `msbuild.binlog` in the current directory.

The binary log contains detailed build information and can be opened with the
[MSBuild Structured Log Viewer](https://msbuildlog.com).

```dotnetcli
dotnet build -bl
dotnet build -bl:build-log.binlog
```

- [!INCLUDE [configuration](../../../includes/cli-configuration.md)]

- [!INCLUDE [disable-build-servers](../../../includes/cli-disable-build-servers.md)]
Expand Down