3

TFS2015 vNext 构建失败并出现记录器错误(错误消息附在下面)。根据我的调查,看起来这与 CentralLogger - "Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" 相关,当我在没有中央记录器的情况下手动运行命令行构建时,它可以工作。

知道如何解决这个问题吗?

vNext 版本中的 CentralLogger 参数:msbuild.exe /fl /nologo /dl:CentralLogger,C:\TFSAgent\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll*ForwardingLogger,C:\TFSAgent\Agent\Worker\ Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll

错误消息:MSBUILD:错误 MSB4166:子节点“Microsoft.Build.Exceptions.InternalLoggerException:由于意外的记录器故障,构建意外停止。---> System.ArgumentException:路径中有非法字符。2017-01-20T17:40 :55.7242247Z MSBUILD:错误 MSB4166:在 System.IO.Path.CheckInvalidPathChars(字符串路径,布尔检查附加)2017-01-20T17:40:55.7242247Z MSBUILD:错误 MSB4166:在 System.IO.Path.IsPathRooted(字符串路径) 2017-01-20T17:40:55.7242247Z MSBUILD:错误 MSB4166:在 MSBuild.Logger.ErrorWarningEventMinimumFields.EnsureFullPath(字符串文件,字符串 projectFile,布尔 isFileName)2017-01-20T17:40:55.7242247Z MSBUILD:错误 MSB4166:在 MSBuild .Logger.ErrorWarningEventMinimumFields..ctor(BuildWarningEventArgs warningEvent,Boolean isStaticAnalysis,Boolean logInformation)2017-01-20T17:40:55.7242247Z MSBUILD:错误MSB4166:在MSBuild.Logger.ProjectTrees.LogWarning(BuildWarningEventArgs warningEvent,Boolean isStaticAnalysis,Boolean logInformation)2017-01-20T17 40:55.7252248Z MSBUILD:错误 MSB4166:在 MSBuild.Logger.CentralLogger.HandleWarningRaised(对象发送者,BuildWarningEventArgs e)2017-01-20T17:40:55.7252248Z MSBUILD:错误 MSB4166:在 Microsoft.Build.BackEnd.Logging.EventSourceSink。 RaiseWarningEvent(对象发送者,BuildWarningEventArgs buildEvent)2017-01-20T17:40:55.7252248Z MSBUILD:错误MSB4166:---内部异常堆栈跟踪结束---2017-01-20T17:40:55.7252248Z MSBUILD:错误MSB4166:在 Microsoft.Build.Exceptions.InternalLoggerException.Throw(异常 innerException,BuildEventArgs e,字符串 messageResourceName,布尔初始化异常,字符串 [] messageArgs)2017-01-20T17:40:55.7252248Z MSBUILD:错误 MSB4166:在 Microsoft.Build.BackEnd。 Logging.EventSourceSink.RaiseWarningEvent(对象发送者,BuildWarningEventArgs buildEvent)2017-01-20T17:40:55.7262249Z MSBUILD:错误 MSB4166:在 Microsoft.Build.BackEnd.Logging.EventSourceSink.Consume(BuildEventArgs buildEvent)2017-01-20T17:40 :55.7262249Z MSBUILD:错误MSB4166:在Microsoft.Build.BackEnd.Logging.EventSourceSink.Consume(BuildEventArgs buildEvent,Int32 sinkId)2017-01-20T17:40:55.7262249Z MSBUILD:错误MSB4166:在Microsoft.Build.BackEnd.Logging .LoggingService。RouteBuildEvent(KeyValuePair`2 nodeEvent)2017-01-20T17:40:55.7262249Z MSBUILD:错误 MSB4166:在 Microsoft.Build.BackEnd.Logging.LoggingService.RouteBuildEvent(对象 loggingEvent)

4

1 回答 1

2

我们通过单独构建解决方案解决了这些问题。我们有一个由主解决方案调用的子解决方案,子解决方案抛出一些警告,似乎 TFS 记录器抛出异常。

于 2017-01-25T18:09:14.553 回答