尝试将变更集与构建关联后,TFS构建失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了尝试将变更集与构建关联后,TFS构建失败相关的知识,希望对你有一定的参考价值。
当具有现有构建定义的第二个构建队列排队时,它将失败,并显示错误Method not found:GetQueryXml。唯一的解决方法是克隆到新的构建和队列。
有什么方法可以解决这个问题吗?或者是否可以跳过此构建步骤?
Associate the changesets that occurred since the last good build00:00:03
Analyzing labels DevBuild_18.02.16.3 and DevBuild_18.02.21.1.
Changeset '9361' was included in this build.
Changeset '9362' was included in this build.
Changeset '9363' was included in this build.
Changeset '9366' was included in this build.
Exception Message: **Method not found**: 'System.Xml.XmlElement Microsoft.TeamFoundation.WorkItemTracking.Internals.WiqlAdapter.**GetQueryXml**(System.String, System.Collections.IDictionary, Boolean, Boolean)'. (type MissingMethodException)
Exception Stack Trace: Server stack trace: at Microsoft.TeamFoundation.WorkItemTracking.Client.Query.Initialize(WorkItemStore store, String wiql, IDictionary context, Int32[] ids, Int32[] revs, Boolean dayPrecision) at
Microsoft.TeamFoundation.WorkItemTracking.Client.Query..ctor(WorkItemStore store, String wiql) at
Microsoft.TeamFoundation.Build.Workflow.Activities.WitQueryWorkItems.RunCommand(WorkItemStore workItemStore, IEnumerable`1 ids, IEnumerable`1 fields, Int32 pageSize, Boolean includeParentWorkItems) at
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at
System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at
System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at System.Func`6.EndInvoke(IAsyncResult result) at Microsoft.TeamFoundation.Build.Workflow.Activities.WitQueryWorkItems.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
答案
该问题应与XAML构建模板相关。如果您使用的是默认模板(TfvcTemplate.12.xaml或GitTemplate.12.xaml),则可以自定义模板并删除相应的活动。如何参考:Customize your build process template。
来自OP的更新:我编辑了TfvcTemplate.12.xaml以删除mtba:AssociateChanges元素,这对我来说就是一招。
以上是关于尝试将变更集与构建关联后,TFS构建失败的主要内容,如果未能解决你的问题,请参考以下文章
如何在两个 TFS 标签之间查找变更集(用于发行说明/变更日志)
在 TFS 2012 beta 中构建失败,但该解决方案在 Visual Studio 2012 RC 中成功构建