尝试将变更集与构建关联后,TFS构建失败

时间:2018-02-22 05:47:42

标签: tfs msbuild

当具有现有构建定义的第二个构建队列排队时,它将失败,并显示错误未找到方法: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)

1 个答案:

答案 0 :(得分:1)

该问题应与XAML构建模板有关。如果您使用的是默认模板(TfvcTemplate.12.xaml或GitTemplate.12.xaml),则可以自定义模板并删除相应的活动。如何参考:Customize your build process template

  

从OP更新:我编辑了TfvcTemplate.12.xaml以删除    mtba:AssociateChanges 元素,这对我有用。