TFS2015 vNext生成失败:MSBUILD:error MSB4017:由于意外的记录器故障,生成意外停止



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

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

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

错误消息:MSBUILD:error MSB4166:子节点"Microsoft.Build.Exceptions.InternalLoggerException":由于意外的记录器故障,生成意外停止。--->System.ArgumentException:路径中存在非法字符。2017-01-20T17:40:55.57242247Z MSBUILD:错误MSB4166:在System.IO.Path.CheckInvalidPathChars(字符串路径,布尔值checkAdditional)2017-01-20T17:40:55.57242247Z MSBUILD:错误MSB4166:位于System.IO.Path.IsPathRooted(字符串路径)2017-01-20T17:40:55.57242247Z MSBUILD:错误MSB4166:在MSBUILD.Logger.ErrorWarningEventMinimumFields.EnsureFullPath(字符串文件,字符串项目文件,布尔值isFileName)2017-01-20T17:40:55.57242247Z MSBUILD:错误MSB4166:在MSBUILD.Logger.ErrorWarningEventMinimumFields处。。ctor(BuildWarningEventArgs warningEvent,Boolean isStaticAnalysis,Boolean logInformation)2017-01-20T17:40:55.57242247Z MSBUILD:错误MSB4166:在MSBUILD.Logger.ProjectTrees.LogWarning(BuildWarningEventArgs warningEvent,Boolean isStaticAnalysis,Boolean logInformation)2017-01-20T17:40:55.752248Z MSBUILD:错误MSB4166:在MSBUILD.Logger.CentralLogger.HandleWarningRaised(对象发送器,BuildWarningEventArgs e)2017-01-20T17:40:55.752248Z MSBUILD:错误MSB4166:在Microsoft.Build.BackEnd.LLogging.EventSourceSink.RaiseWarningEvent(对象发送器,BuildWarningEventArgs buildEvent)2017-01-20T17:40:55.752248Z MSBUILD:error MSB4166:--内部异常堆栈跟踪结束---2017-01-20T17:40:55.752248Z MSBUILD:错误MSB4166:在Microsoft.Build.Exceptions.InternalLoggerException.Sthrow(Exception innerException,BuildEventArgs e,String messageResourceName,Boolean initializationException,String[]messageArgs)2017-01-20T17:40:55.752248Z MSBUILD:错误MSB4166:在Microsoft.Build.BackEnd.LLogging.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.27262249Z MSBUILD:错误MSB4166:在Microsoft.Build.BackEnd.Logging.LoggingService.RouteBuildEvent(Object loggingEvent)

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

最新更新