【发布时间】:2014-01-14 21:20:07
【问题描述】:
我正在编写自定义构建过程模板,并面临以下与输入参数值相关的问题。请帮忙。
- 克隆了 StandardTemplate.xml 并重命名为 CustomTemplate.xml
- 添加名为 BatFileLocation 的新参数
-
尝试将 BatFileLocation 的参数值显示为如下代码
// 定义一个字符串类型的活动输入参数
public InArgument<string> BatFileLocation { set; get; } protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument string text = context.GetValue(this.BatFileLocation); context.TrackBuildWarning(string.Format("Trigger the {0}", text)); }
但结果是 EMPTY 或 NULL。
【问题讨论】:
标签: c# tfs build build-process