Skip to content

Instantly share code, notes, and snippets.

View peterhuene's full-sized avatar

Peter Huene peterhuene

View GitHub Profile
@dsplaisted
dsplaisted / Providing Binary Logs.md
Last active April 29, 2019 19:45
Providing Binary Logs

MSBuild Binary Logs

MSBuild has the ability to capture a detailed binary log file. If you are having a build issue and are able to provide a binary log, this will be very helpful for us to investigate the issue.

However, you should be aware of the type of information captured in the binary log to make sure you are not inadvertently sharing more than you intend. The binary log captures pretty much everything your build does, including the contents of your project files and any files (such as .props and .targets) that they import, all tasks that are run during the build as well as the input and output, as well as all environment variables. It generally won't include the contents of the source files that are compiled, but it will capture their full names and paths.

⚠ NOTE: some build environments make secrets available via environment variables. Before sharing a binary log, make sure it does not expose API tokens or other important secrets.

You can create a binary log by passing the /bl parameter to M