-
-
Notifications
You must be signed in to change notification settings - Fork 226
BinaryLog.ReadRecords reports Kind as EndOfFile for almost all records #877
Copy link
Copy link
Closed
Description
Steps to reproduce:
dotnet new console
dotnet build -bl # to create sample binlog
dotnet add package MSBuild.StructuredLogger --version 2.2.472Replace Program.cs with:
using Microsoft.Build.Logging.StructuredLogger;
var records = BinaryLog.ReadRecords("msbuild.binlog").ToList();
Console.WriteLine($"Records: {records.Count}");
Console.WriteLine($"Kinds: {string.Join(", ", records.CountBy(r => r.Kind))}");
Console.WriteLine($"Example: {records.First(r => r.Args?.Message == "EvaluationStarted")}");dotnet runObserved output:
Records: 3893
Kinds: [EndOfFile, 3892], [ProjectImportArchive, 1]Expected: some other kinds as well, for example BinaryLogRecordKind.ProjectEvaluationStarted for records.First(r => r.Args?.Message == "EvaluationStarted").Kind.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels