首页 新闻 会员 周边 捐助

F# Fake 运行 CI 报错"Unsupported log file format. Latest supported version is 8, the log file has version 9"

0
悬赏园豆:30 [已解决问题] 解决于 2020-05-23 22:21

一个 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

请问如何解决?

F#
dudu的主页 dudu | 高人七级 | 园豆:29817
提问于:2020-05-23 20:23
< >
分享
最佳答案
0

参考 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 }
dudu | 高人七级 |园豆:29817 | 2020-05-23 22:21
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册