简体   繁体   中英

TFS2015 vNext build fail:MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure

TFS2015 vNext build fail with logger error (error message attached below). From my investigation, looks like this is related to CentralLogger - "Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" , when I run the command line build manually without the centrallogger, it works.

Any idea how to solve the issue?

CentralLogger parameter in vNext build: 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

Error Message: MSBUILD : error MSB4166: Child node "Microsoft.Build.Exceptions.InternalLoggerException: The build stopped unexpectedly because of an unexpected logger failure. ---> System.ArgumentException: Illegal characters in path. 2017-01-20T17:40:55.7242247Z MSBUILD : error MSB4166: at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) 2017-01-20T17:40:55.7242247Z MSBUILD : error MSB4166: at System.IO.Path.IsPathRooted(String path) 2017-01-20T17:40:55.7242247Z MSBUILD : error MSB4166: at MSBuild.Logger.ErrorWarningEventMinimumFields.EnsureFullPath(String file, String projectFile, Boolean isFileName) 2017-01-20T17:40:55.7242247Z MSBUILD : error MSB4166: at MSBuild.Logger.ErrorWarningEventMinimumFields..ctor(BuildWarningEventArgs warningEvent, Boolean isStaticAnalysis, Boolean logInformation) 2017-01-20T17:40:55.7242247Z MSBUILD : error MSB4166: at MSBuild.Logger.ProjectTrees.LogWarning(BuildWarningEventArgs warningEvent, Boolean isStaticAnalysis, Boolean log Information) 2017-01-20T17:40:55.7252248Z MSBUILD : error MSB4166: at MSBuild.Logger.CentralLogger.HandleWarningRaised(Object sender, BuildWarningEventArgs e) 2017-01-20T17:40:55.7252248Z MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseWarningEvent(Object sender, BuildWarningEventArgs buildEvent) 2017-01-20T17:40:55.7252248Z MSBUILD : error MSB4166: --- End of inner exception stack trace --- 2017-01-20T17:40:55.7252248Z MSBUILD : error MSB4166: at Microsoft.Build.Exceptions.InternalLoggerException.Throw(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] messageArgs) 2017-01-20T17:40:55.7252248Z MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.Logging.EventSourceSink.RaiseWarningEvent(Object sender, BuildWarningEventArgs buildEvent) 2017-01-20T17:40:55.7262249Z MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.Logging.EventSourceSink.Consume(BuildEventArgs buildEvent) 2017-01-20T17:40:55 .7262249Z MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.Logging.EventSourceSink.Consume(BuildEventArgs buildEvent, Int32 sinkId) 2017-01-20T17:40:55.7262249Z MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.Logging.LoggingService.RouteBuildEvent(KeyValuePair`2 nodeEvent) 2017-01-20T17:40:55.7262249Z MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.Logging.LoggingService.RouteBuildEvent(Object loggingEvent)

We solved the issues by building solutions separately. We had a sub-solution called by the main solution, the sub-solution throw some warnings, and seems the TFS logger throw the exception on that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM