TFS2015 vNext构建失败:MSBUILD:错误MSB4017:由于意外的记录器故障导致构建意外停止

时间:2017-01-20 18:30:10

标签: logging msbuild tfs2015 vnext

TFS2015 vNext版本因记录器错误而失败(下面附带错误消息)。 从我的调查看起来,这与CentralLogger相关 - “Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll”,当我在没有centrallogger的情况下手动运行命令行构建时,它可以工作。

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

vNext build中的

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:at System.IO.Path.CheckInvalidPathChars(String path,Boolean checkAdditional) 2017-01-20T17:40:55.7242247Z MSBUILD:错误MSB4166:at System.IO.Path.IsPathRooted(String path) 2017-01-20T17:40:55.7242247Z MSBUILD:错误MSB4166:在MSBuild.Logger.ErrorWarningEventMinimumFields.EnsureFullPath(String file,String projectFile,Boolean 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(Object sender,BuildWarningEventArgs e) 2017-01-20T17:40:55.7252248Z MSBUILD:错误MSB4166:在Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseWarningEvent(Object sender,BuildWarningEventArgs buildEvent) 2017-01-20T17:40:55.7252248Z MSBUILD:错误MSB4166:---内部异常堆栈跟踪结束--- 2017-01-20T17:40:55.7252248Z MSBUILD:错误MSB4166:at 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(Object sender,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(Object loggingEvent)

1 个答案:

答案 0 :(得分:2)

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