KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.44k stars 190 forks source link

Unsupported log file format. Latest supported version is 13, the log file has version 14 #546

Closed yaskovdev closed 2 years ago

yaskovdev commented 2 years ago

I am using MSBuild 17.0.0.52104. When I try to open the msbuild.binlog (renamed to msbuild.binlog.txt and attached to the ticket below) produced by the msbuild /bl command, I get the next exception:

System.NotSupportedException: Unsupported log file format. Latest supported version is 13, the log file has version 14.
   at Microsoft.Build.Logging.StructuredLogger.BinLogReader.Replay(Stream stream, Progress progress) in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BinLogReader.cs:line 74
   at Microsoft.Build.Logging.StructuredLogger.BinaryLog.ReadBuild(Stream stream, Progress progress, Byte[] projectImportsArchive) in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLo
[msbuild.binlog.txt](https://github.com/KirillOsenkov/MSBuildStructuredLog/files/7660489/msbuild.binlog.txt)
g.cs:line 101
   at Microsoft.Build.Logging.StructuredLogger.BinaryLog.ReadBuild(String filePath, Progress progress) in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLog.cs:line 41
   at Microsoft.Build.Logging.StructuredLogger.Serialization.Read(String filePath, Progress progress) in C:\MSBuildStructuredLog\src\StructuredLogger\Serialization\Serialization.cs:line 71
   at StructuredLogViewer.MainWindow.<>c__DisplayClass29_0.<OpenLogFile>b__2() in C:\MSBuildStructuredLog\src\StructuredLogViewer\MainWindow.xaml.cs:line 407
yaskovdev commented 2 years ago

msbuild.binlog.txt

KirillOsenkov commented 2 years ago

Please update the viewer to 2.1.561 (latest). It auto-updates after you restart it.

yaskovdev commented 2 years ago

2.1.561 works well. Thank you! I think there is no need to keep the issue open.