TFS2015 vNext 构建 fail:MSBUILD:错误 MSB4017:构建因意外记录器故障而意外停止
TFS2015 vNext build fail:MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure
TFS2015 vNext 构建因记录器错误而失败(下面附有错误消息)。
根据我的调查,这似乎与 CentralLogger - "Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" 有关,当我 运行 命令行在没有 centrallogger 的情况下手动构建时,它起作用了。
知道如何解决这个问题吗?
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(字符串文件、字符串项目文件、布尔值 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(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] 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)
我们通过单独构建解决方案解决了这些问题。我们有一个由主要解决方案调用的 sub-solution,sub-solution 抛出一些警告,似乎 TFS 记录器抛出异常。
TFS2015 vNext 构建因记录器错误而失败(下面附有错误消息)。 根据我的调查,这似乎与 CentralLogger - "Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" 有关,当我 运行 命令行在没有 centrallogger 的情况下手动构建时,它起作用了。
知道如何解决这个问题吗?
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(字符串文件、字符串项目文件、布尔值 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(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] 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)
我们通过单独构建解决方案解决了这些问题。我们有一个由主要解决方案调用的 sub-solution,sub-solution 抛出一些警告,似乎 TFS 记录器抛出异常。