-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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.
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
To capture binary logs for builds issued inside Visual Studio
- Install Project System Tools - https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProjectSystemTools
- Follow the instructions on https://github.com/dotnet/project-system-tools#features to start logging builds
- Use the
Save Logs
command to save the binary logs to disk
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.