本文介绍了TFS将日志文件发布到#/198/logs/msbuild/agent-2时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我安装了TFS 2013,并且构建系统有问题.我不使用放置文件夹,正在构建一种解决方案,非常简单的配置.我收到以下错误,该错误使构建失败(某些名称已替换为AppName以保护应用程序的身份):

I installed TFS 2013 and am having a problem with the build system. I don't use a drop folder, one solution being built, pretty simple config. I am getting the following error which fails the build (some names replaced with AppName to protect the app's identity):

此#/198/logs/msbuild/agent-2"路径在哪里显然是导致此问题的原因?

Where is this "#/198/logs/msbuild/agent-2" path that obviously is the cause of this problem?

谢谢.

推荐答案

检查构建模板中的DropLocation变量.

Check your DropLocation variable in your build template.

查找设置此路径的最简单方法是查看您的构建模板并搜索例如日志".在我的情况下,我发现只有一个Activity将日志路径分配给变量.然后,您可以将模板中的所有变量回溯到原始数据源.像这样:

Simplest way to find where this path is set is to look into your build template and search for e.g. "log".In my case I found only one Activity that assigning logs path to variable. Then you can backtrack all variables in your template to original sources of data.Something like this:

 <Assign x:TypeArguments="x:String"
  DisplayName="Initialize LogFile Drop Location" To="[logFileDropLocation]"
  Value="[If (platformConfiguration.IsEmpty
  Or BuildSettings.PlatformConfigurations.Count = 1,
  BuildDropProvider.CombinePaths(DropLocation, &quot;logs&quot;), If
  (platformConfiguration.IsPlatformEmptyOrAnyCpu,
  BuildDropProvider.CombinePaths(DropLocation, &quot;logs&quot;,
  platformConfiguration.Configuration),
  BuildDropProvider.CombinePaths(DropLocation,
  &quot;logs&quot;, platformConfiguration.Platform,
  platformConfiguration.Configuration)))]"
  mtbwt:BuildTrackingParticipant.Importance="Low" />

这篇关于TFS将日志文件发布到#/198/logs/msbuild/agent-2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 20:56