TFS高级构建参数未显示

时间:2013-09-04 18:00:01

标签: tfs tfsbuild azure-devops

我需要将Pre-build script path参数添加到我的构建定义文件中。我没有看到它接受参数的位置,也没有在Advanced Builds下显示多少,如下所示: enter image description here

在查看构建过程模板文件GitTemplate.12.xaml时,它会显示它应该接受更多参数,如AdvancedBuildSettings中所示:

enter image description here

如您所见,参数的值是PostActionScriptPath参数:

New Microsoft.TeamFoundation.Build.Common.BuildParameter(" { ""MSBuildArguments"": """",
""MSBuildPlatform"": ""Auto"", ""PreActionScriptPath"": """",
""PreActionScriptArguments"": """", ""PostActionScriptPath"": """",
""PostActionScriptArguments"": """", ""RunCodeAnalysis"": ""AsConfigured"" } ")

任何人都知道如何启用此参数,以便我可以输入PreActionScriptPath的值?这也发生在另一个构建定义中,该定义清楚地表明它接受.xaml文件中的参数。

1 个答案:

答案 0 :(得分:7)

编辑构建过程模板时,转到Arguments,查找Metadata并编辑值。查找未显示的参数,然后在右侧单击标签View this parameter when:并选择Always show the parameter