MSBuild.StructuredLogger
2.3.204
dotnet add package MSBuild.StructuredLogger --version 2.3.204
NuGet\Install-Package MSBuild.StructuredLogger -Version 2.3.204
<PackageReference Include="MSBuild.StructuredLogger" Version="2.3.204" />
<PackageVersion Include="MSBuild.StructuredLogger" Version="2.3.204" />
<PackageReference Include="MSBuild.StructuredLogger" />
paket add MSBuild.StructuredLogger --version 2.3.204
#r "nuget: MSBuild.StructuredLogger, 2.3.204"
#:package MSBuild.StructuredLogger@2.3.204
#addin nuget:?package=MSBuild.StructuredLogger&version=2.3.204
#tool nuget:?package=MSBuild.StructuredLogger&version=2.3.204
MSBuildStructuredLog
A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values. It can greatly simplify build investigations and provides a portable log interchange format (*.binlog) and a rich interactive log viewer app.
Homepage: https://msbuildlog.com BinlogMcp: https://msbuildlog.com/binlogmcp Syntax: https://msbuildlog.com/syntax
Thanks to SignPath.io for providing a free code signing service and to the SignPath Foundation for a free code signing certificate to sign the installer.
Install:
Install from https://msbuildlog.com.
The app updates automatically via Squirrel (after launch it checks for updates in background), next launch starts the newly downloaded latest version.
Installing the Avalonia version on Mac:
Download the latest release for arm64 or x64.
Alternatively, you can install from Homebrew:
brew install structuredlogviewer
Building & Running the Avalonia version on Mac/Linux:
git clone https://github.com/KirillOsenkov/MSBuildStructuredLog
cd MSBuildStructuredLog
./run.sh
Alternatively, a longer version:
dotnet build MSBuildStructuredLog.Avalonia.slndotnet publish MSBuildStructuredLog.Avalonia.sln --self-contained -o <some_dir>(I used $HOME/tools/artifacts/StructuredLogViewer.Avalonia)- make a script
$HOME/bin/structured-log-viewer(or whatever's on your PATH):
#! /bin/sh
exec dotnet ${HOME}/tools/artifacts/StructuredLogViewer.Avalonia/publish/StructuredLogViewer.Avalonia.dll "$@"
Requirements:
Windows:
- .NET Framework 4.7.2
- MSBuild 17.0
- Visual Studio 2022
Mac:
- .NET SDK
Usage:
You can pass /bl switch to msbuild.exe or dotnet build to record a binary build log to msbuild.binlog, in the same folder as the project/solution being built:
or you can build the solution or open an existing log file through the viewer app:
Features:
- Preprocess project files (with all imports inlined), right-click on a project → Preprocess
- If a log has embedded files, you can view the list of files, full-text search in all files, and use the Space key (or double-click) on most nodes to view the source code.
- Displays double-writes (when files from different sources are written to the same destination during a build, thus causing non-determinism)
- Displays target dependencies for each target
- Narrow down the search results using the under() or project() clauses to only display results under a certain parent or project.
- Each node in the tree has a context menu. Ctrl+C to copy an item and the entire subtree to Clipboard as text.
- Delete to hide nodes from the tree (to get uninteresting stuff out of the way).
- Open and save log files (option to save log files to .xml)
- Logs can include the source code project files and all imported files used during the build.
Investigating problems with MSBuildStructuredLog
Open an issue if you're running into something weird and I can take a look into it. If MSBuildStructuredLog crashes during the build, it will attempt to write the exception call stack to:
%localappdata%\Microsoft\MSBuildStructuredLog\LoggerExceptions.txt
MSBuild Resources
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Build.Framework (>= 17.5.0)
- Microsoft.Build.Utilities.Core (>= 17.5.0)
- System.Collections.Immutable (>= 8.0.0)
- System.Memory (>= 4.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.0)
-
net10.0
- Microsoft.Build.Framework (>= 17.5.0)
- Microsoft.Build.Utilities.Core (>= 17.5.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on MSBuild.StructuredLogger:
| Package | Downloads |
|---|---|
|
Buildalyzer
A little utility to perform design-time builds of .NET projects without having to think too hard about it. Should work with any project type on any .NET runtime. |
|
|
Fake.DotNet.MSBuild
FAKE - F# Make - is a build automation tool for .NET. Tasks and dependencies are specified in a DSL which is integrated in F#. |
|
|
Cake.Frosting.Issues.MsBuild
The MsBuild support for the Cake.Issues addin for Cake allows you to read issues logged as warnings in a MsBuild log. This addin provides the aliases for reading MsBuild warnings and providing them to the Cake.Issues addin. It also requires the core Cake.Issues addin. There are also additional addins for generating reports or posting issues to pull requests. See the Project Site for an overview of the whole ecosystem of addins for working with issues in Cake scripts. NOTE: This is the version of the addin compatible with Cake Frosting. For addin compatible with Cake Script Runners see Cake.Issues.MsBuild. |
|
|
Basic.CompilerLog.Util
Package Description |
|
|
Microsoft.ComponentDetection.Detectors
Package Description |
GitHub repositories (22)
Showing the top 20 popular GitHub repositories that depend on MSBuild.StructuredLogger:
| Repository | Stars |
|---|---|
|
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
|
|
|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
|
mathnet/mathnet-numerics
Math.NET Numerics
|
|
|
opentk/opentk
The Open Toolkit library is a fast, low-level C# wrapper for OpenGL, OpenAL & OpenCL. It also includes windowing, mouse, keyboard and joystick input and a robust and fast math library, giving you everything you need to write your own renderer or game engine. OpenTK can be used standalone or inside a GUI on Windows, Linux, Mac.
|
|
|
dotnet/sdk
Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
|
|
|
dotnet/macios
.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
|
|
|
dotnet/android
.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
|
|
|
KirillOsenkov/SourceBrowser
Source browser website generator that powers https://source.dot.net, https://referencesource.microsoft.com and https://sourceroslyn.io
|
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
|
microsoft/testfx
This repository holds the source code of Microsoft.Testing.Platform (MTP), a lightweight alternative to VSTest, as well as MSTest adapter and framework.
|
|
|
moq/labs
The most popular and friendly mocking framework for .NET
|
|
|
Buildalyzer/Buildalyzer
A utility to perform design-time builds of .NET projects without having to think too hard about it.
|
|
|
microsoft/component-detection
Scans your project to determine what components you use
|
|
|
SonarSource/sonar-scanner-msbuild
SonarScanner for .NET
|
|
|
VSadov/Satori
Experimenting with dotnet runtime.
|
|
|
devlooped/nugetizer
A simple to understand packing model for authoring NuGet packages
|
|
|
opentk/GLWpfControl
A fast native control for OpenTK 4.x + 3.x on WPF.
|
|
|
devlooped/avatar
A modern compile-time generated interception/proxy library
|
|
|
X-Sharp/XSharpPublic
Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.204 | 176 | 5/12/2026 |
| 2.3.178 | 4,159 | 4/27/2026 |
| 2.3.154 | 13,871 | 3/31/2026 |
| 2.3.113 | 131,740 | 12/4/2025 |
| 2.3.109 | 3,037 | 12/2/2025 |
| 2.3.71 | 68,318 | 10/9/2025 |
| 2.3.59 | 130,737 | 9/20/2025 |
| 2.3.45 | 30,330 | 8/14/2025 |
| 2.3.17 | 95,406 | 7/3/2025 |
| 2.2.472 | 75,128 | 3/17/2025 |
| 2.2.441 | 32,647 | 2/12/2025 |
| 2.2.386 | 366,270 | 11/8/2024 |
| 2.2.384 | 899 | 11/7/2024 |
| 2.2.383 | 1,625 | 11/4/2024 |
| 2.2.374 | 12,817 | 10/27/2024 |
| 2.2.356 | 31,507 | 10/9/2024 |
| 2.2.350 | 93,150 | 9/19/2024 |
| 2.2.337 | 6,338 | 9/4/2024 |
| 2.2.317 | 3,361 | 8/28/2024 |
| 2.2.291 | 14,195 | 7/26/2024 |