msbuildvisual-studio-2017

Enable binary logging for MSBuild in Visual Studio 2017


In order to use the binary logging format for MSBuild introduced in MSBuild 15.3, I have to run MSBuild and pass in the /bl command-line argument:

msbuild.exe MySolution.sln /bl

How can I have Visual Studio pass this argument every time I build from within Visual Studio? Or, is there some other way to view the output from within Visual Studio?


Solution

  • Install the Project System Tools (referenced by @MSalters).

    Also install the MSBuild Binary and Structured Log Viewer.

    The Project System Tools adds a new Build Logging window. When you right-click on entries in the window and choose Open Log..., the log will be opened using the viewer.