phmonte / Buildalyzer

A utility to perform design-time builds of .NET projects without having to think too hard about it.
MIT License
589 stars 92 forks source link

Unsupported log file version #226

Closed colombod closed 4 months ago

colombod commented 1 year ago

with Buildazlyer 5 and my current sdk is 7.0.201 i get the following error

(Unsupported log file format. Latest supported version is 14, the log file has version 15.) ---> System.NotSupportedException: Unsupported log file format. Latest supported version is 14, the log file has version 15.

daveaglick commented 1 year ago

What's the target of the project you're building?

colombod commented 1 year ago

Net 7.0

daveaglick commented 1 year ago

Any chance you could get a full stack trace as well, either by attaching to the process or some other way? I'm unable to replicate this with the 7.0.201 SDK installed and building a project that targets net7.0 - it appears to build find and get correctly analyzed by Buildalyzer.

daveaglick commented 1 year ago

...or provide any more information that might help replicate the issue. It looks like MSBuild is using a more recent version of the structured logging support than Buildalyzer can recognize, but I can't figure out any way to replicate that difference locally (which means I've got no way of testing fixes).

zonets commented 1 year ago

Same problem when using msbuild from .Net SDK version 6.0.101 with the -bl option to generate the binary logs and then analyze them with AnalyzerManager.Analyze method (Builalyzer version 5.0.0).

daveaglick commented 1 year ago

Thanks @zonets, that'll hopefully give me something to go on.

daveaglick commented 6 months ago

It's been a while, but a new version 6.0.2 is now released that updates some references and fixes some other bugs. I think it will have also updated the support log file formats by bumping the MSBuild libraries, but when either of you get a chance, please try it out and let me know. Thanks!

phmonte commented 4 months ago

Closing this issue due to lack of activity, if anything new, open a new one.