Skip to content

MSBuild logging

Pranav K edited this page May 1, 2020 · 2 revisions

MSBuild binary's log are a really useful tool for us to investigate build related issues.

Capture binary logs from the command line

To capture binary logs on the command line, add the /bl switch to your dotnet command. For instance:

dotnet build /bl

This should generate the logs in a file named msbuild.binlog

Capture binary logs from Visual Studio

To capture binary logs for builds issued inside Visual Studio

When asked, attach the binary logs to an issue. You may have to zip these files as GitHub does not currently allow attaching binlog files to issues.