从我的构建模板中删除几个参数并更新相应的构建定义后,我收到以下错误:
TF215097: An error occurred while initializing a build for build definition \Automated Deployments\AutoDeploy-Kentico-Test:
Exception Message: The values provided for the root activity's arguments did not satisfy the root activity's requirements:
'DynamicActivity': The following keys from the input dictionary do not map to arguments and must be removed: ServerDeploymentScriptLocation, DestinationBinDirectory. Please note that argument names are case sensitive.
Parameter name: rootArgumentValues (type ArgumentException)
Exception Stack Trace: at System.Activities.Validation.ActivityValidationServices.ValidateRootInputs(Activity rootActivity, IDictionary`2 inputs)
at System.Activities.Hosting.WorkflowInstance.InitializeCore(IDictionary`2 workflowArgumentValues, IList`1 workflowExecutionProperties)
at System.Activities.Hosting.WorkflowInstance.Initialize(IDictionary`2 workflowArgumentValues, IList`1 workflowExecutionProperties)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.WaitForTurn(InstanceOperation operation, TimeSpan timeout)
at System.Activities.WorkflowApplication.InternalRun(TimeSpan timeout, Boolean isUserRun)
at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowInstance.Start()
at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)
显然 TFS 很生气,因为“输入字典”中有不应该存在的键,这可能是因为我删除了它们。问题是我不知道 TFS 在哪里找到了它不应该找到的值。
如何纠正这个错误?