我在触发构建时遇到错误。 我们正在使用 TFS2012和VS2012 。
实际上我已经将 DefaultTemplate.11.1.xaml 定制为套件项目要求。 添加自定义活动和模板后,我们收到错误..
TF215097:初始化构建定义的构建时发生错误\ ALM \ VersioningBuild:异常消息:类型'Microsoft.TeamFoundation.Build.Workflow.Activities.BuildSettings'的表达式不能用于返回类型'Microsoft .TeamFoundation.Build.Workflow.Activities.BuildSettings'(类型ArgumentException)异常堆栈跟踪:
在System.Linq.Expressions.Expression.ValidateLambdaArgs(类型delegateType,Expression& body,ReadOnlyCollection 1 parameters) at System.Linq.Expressions.Expression.LambdaTDelegate at System.Linq.Expressions.Expression.LambdaTDelegate at Microsoft.VisualBasic.Activities.VisualBasicHelper.CompileT at Microsoft.VisualBasic.Activities.VisualBasicHelper.CompileT at Microsoft.VisualBasic.Activities.VisualBasicHelper.CompileT at Microsoft.VisualBasic.Activities.VisualBasicValue
1.CacheMetadata(CodeActivityMetadata metadata)at System.Activities.CodeActivity 1.OnInternalCacheMetadataExceptResult(Boolean createEmptyBindings) at System.Activities.Activity
1.OnInternalCacheMetadata(Boolean System.Activities.ActivityUtilities.CacheRootMetadata(活动活动,LocationReferenceEnvironment)上的System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings,IList 1& validationErrors) at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack
1& activitiesRemaining,ActivityCallStack parentChain,IList 1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback) at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList
1& validationErrors)中的createEmptyBindings)在Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest请求,WorkflowManagerActivity活动,BuildWorkflowInstance& workflowInstance,Exception& error,Boolean& syncLockTaken)中的hostEnvironment,ProcessActivityTreeOptions选项,ProcessActivityCallback回调,IList 1& validationErrors) at System.Activities.Validation.ActivityValidationServices.InternalActivityValidationServices.InternalValidate() at Microsoft.TeamFoundation.Build.Workflow.WorkflowHelpers.ValidateWorkflow(Activity activity, ValidationSettings validationSettings) at Microsoft.TeamFoundation.Build.Hosting.BuildProcessCache.LoadFromXaml(String workflowXaml, TextExpressionImports textExpressionImports) at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(IBuildDetail build, WorkflowRequest request, IDictionary
2 dataContext)
我完全被困在这里。
任何帮助都会有很大帮助。谢谢!
答案 0 :(得分:0)
结果是我在我的项目中引用了Microsoft.TeamFoundation.Build.Workflow的错误版本(较低版本)。
但是构建服务器具有更高的dll版本。