TFS 生成错误 : TF215097 - The following keys from the input dictionary do not map to arguments and must be removed

标签 tfs build-process tfsbuild build-process-template

从我的构建模板中删除了几个参数并更新了相应的构建定义后,我收到了以下错误:

    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 在哪里找到它不应该找到它们的值。

如何纠正这个错误?

最佳答案

我认为我在删除构建定义的参数时遇到了类似的问题,但构建定义仍保留参数的默认值。我建议尝试:

  1. 将参数放回构建定义中
  2. 编辑构建定义并删除参数的默认值,使它们为空
  3. 再次删除参数。

您还可以尝试在构建模板的 xaml 中搜索以下值:

  • ServerDeploymentScriptLocation
  • DestinationBinDirectory

关于TFS 生成错误 : TF215097 - The following keys from the input dictionary do not map to arguments and must be removed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19735215/

相关文章:

tfs - 如何修复 "You are not authorized to access"访问 VS Team Services

tfs - 如何导出 tfs 工作项详细信息?

ios - Xcode中从一个项目到另一个项目的引用文件

tfs - 您在构建自动化过程中做了哪些有趣而有趣的事情?

visual-studio - Visual Studio 2015 需要很长时间(10 - 15 分钟)在 TFS 的 "Get Latest"后重新加载项目

visual-studio - 缺少 Visual Studio 2012 商业智能 SSIS 包

c++ - MSBuild 在针对不同配置运行时不必要地运行自定义生成工具

java - 使用 Maven 进行库开发

.net - Git 子模块在 TFS 构建上失败

tfs - 如何在小型匹配模式中同时使用 NOT 和 OR 进行过滤?