Skip to content

Support binlog format v28: structured RAR diagnostic events (AssemblyResolutionSearchTrace, AssemblyConflictDependencyDetails, AssemblyConflictWarning) #968

Closed

Description

Context

Two merged dotnet/msbuild PRs restructure ResolveAssemblyReference (RAR) diagnostics from plain-text message events into dedicated structured events, and bump the binary-log format version from 27 to 28 to carry them:

  • dotnet/msbuild#14599 — "Aggregate RAR search diagnostics in binary logs". Adds AssemblyResolutionSearchTraceEventArgs, replacing the per-candidate rejection/missing-candidate/search-path BuildMessageEventArgs with one structured event per resolved reference.
  • dotnet/msbuild#14601 — "Structure RAR conflict diagnostics in binary logs", stacked on #14599. Adds structured events for RAR conflict dependency details and the aggregated MSB3277 conflict warning.

Both are gated behind ChangeWave 18.12 (not yet GA at time of writing; currently reachable via Visual Studio/MSBuild Insiders builds, or explicitly via the change-wave opt-in). Disabling the wave (MSBUILDDISABLEFEATURESFROMVERSION=18.12) restores the legacy plain-text events.

New record kinds

BinaryLogRecordKind gained three new values right after MSBuildServerLifecycle:

MSBuildServerLifecycle = 36,
AssemblyResolutionSearchTrace = 37,
AssemblyConflictDependencyDetails = 38,
AssemblyConflictWarning = 39,

This project's copy of the enum (current main, and the latest release v2.3.246) still ends at MSBuildServerLifecycle, so there's no reader for 37–39 yet, and FileFormatVersion here is still 27.

Current behavior

Reading a format-28 binlog works and doesn't throw — BuildEventArgsReader correctly treats the unrecognized record kinds as forward-compatible-skippable, and BinaryLog.ReadBuild surfaces a single aggregate Warning ("Skipped some data unknown to this version of Viewer...") summarizing how many such records were skipped.

That said, all content from these three new record kinds is currently lost: the per-reference RAR search-attempt trace and the structured conflict/dependency details never appear anywhere in the parsed Build tree or the Viewer UI, even though they now carry more structured, lossless data than the plain-text messages they replaced.

Request

Add format-28 support: deserialize AssemblyResolutionSearchTrace, AssemblyConflictDependencyDetails, and AssemblyConflictWarning into their own typed events/nodes (mirroring how MSBuildServerLifecycle was added for v27), so they render with their actual content in the Viewer instead of collapsing into the generic skipped-data summary.

The wire format for these three kinds is already defined in dotnet/msbuild's own binary logger files (the same files this project already mirrors for other record kinds):

Filing this now, ahead of ChangeWave 18.12 reaching general availability, so there's lead time before it affects a broader set of binlogs. Happy to help with a PR if useful — let me know if you'd rather wait until the change wave (and wire format) has settled before taking changes.

Activity

  1. baronfel commented on Oct 22, 2026

    @baronfel
    Collaborator

    It's safe to go ahead and implement these, the format's not going to change before GA release as we're in basically code freeze right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions