binlog-generation

Generate unique binary log files for MSBuild and .NET builds.

5.1k|377|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dotnet/skills --skill binlog-generation-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: binlog-generation
Source: https://github.com/dotnet/skills/tree/main/plugins/dotnet-msbuild/skills/binlog-generation
Command: npx skills add https://github.com/dotnet/skills --skill binlog-generation-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that unique binary log files are generated for every MSBuild/.NET build, preventing data loss and simplifying failure analysis.

Core Features & Use Cases

  • Automatic Binlog Naming: Utilizes the /bl:{} switch to create uniquely named binlogs for each build.
  • Failure Analysis: Provides immediate access to build logs for debugging without manual intervention.
  • Use Case: When a CI build fails, you can instantly access the specific binlog for that build to diagnose the issue, rather than having to re-run the build.

Quick Start

Pass the /bl:{} flag to your dotnet build command.

Frequently Asked Questions about binlog-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unique MSBuild binlogs for dotnet builds?

To generate unique MSBuild binlogs, pass the `/bl:{}` switch to your build commands. This automatically creates uniquely named binary log files for each dotnet build, test, or pack execution, preventing any binlog overwrites.

Why do my MSBuild binlogs keep getting overwritten during CI builds?

MSBuild binlogs get overwritten when builds use the same filename. Generating unique binlogs with the `/bl:{}` switch prevents data loss by ensuring every build creates a distinctly named file, preserving build history for failure analysis.

Can I use the /bl:{} switch for dotnet test and dotnet pack commands?

Yes, you can use the `/bl:{}` switch for dotnet test and dotnet pack commands. This MSBuild binary log generation supports all build-related dotnet commands, ensuring unique log files are created for comprehensive diagnostics.

What is the best way to preserve build history for MSBuild failure analysis?

The best way to preserve build history is generating unique binary log files for every MSBuild build. By using the `/bl:{}` switch, you ensure immediate access to specific binlogs for debugging without needing to re-run failed builds.

Does generating unique binlogs require manual filename configuration for each dotnet build?

No, generating unique binlogs does not require manual filename configuration. The `/bl:{}` switch handles automatic unique filename generation for MSBuild and .NET builds, eliminating manual intervention and simplifying your diagnostics workflow.