一个 ASP.NET Core 项目,Fake 运行 CI 报错:
-> NotSupportedException: Unsupported log file format. Latest supported version is 8, the log file has version 9.
StackTrace:
at Microsoft.Build.Logging.StructuredLogger.BinLogReader.ReadRecordsFromDecompressedStream(Stream decompressedStream)+MoveNext() in C:\MSBuildStructuredLog\src\StructuredLogger\BinaryLogger\BinLogReader.cs:line 160
请问如何解决?
参考 altcode.test/Build/targets.fsx 中的实现解决了。
let cliArguments =
{ MSBuild.CliArguments.Create() with ConsoleLogParameters = []
DistributedLoggers = None
DisableInternalBinLog = true }
let withCLIArgs (o : Fake.DotNet.DotNet.TestOptions) =
{ o with MSBuildParams = cliArguments }