【问题标题】:tf.exe checkin command: TF10139tf.exe 签入命令:TF10139
【发布时间】:2015-10-05 22:16:46
【问题描述】:

我正在尝试使用 tf.exe 将一些文件提交到 TFS 2013(它将成为我们开发工具的一些插件)。 TFS 服务器有安全策略:每个变更集都应该有到工作项的链接。 我们使用以下命令行参数:

tf checkin /noprompt /override:"Automated Build Process" /comment:"-"

以及这个操作的结果:

TF10139: The following check-in policies have not been satisfied:
You must associate this check-in with one or more work items.

我看到参数 /override 被工具忽略了。 Visual Studio Team Explorer 执行相同的操作没有问题。

【问题讨论】:

    标签: tfs


    【解决方案1】:

    这种情况是使用 tf.exe 包装 C# 代码的结果。这是代码sn-p:

    ProcessStartInfo info = new ProcessStartInfo(Constants.UtilExe, sParams);
    info.RedirectStandardOutput = true;
    info.RedirectStandardError = true;
    info.UseShellExecute = false;
    info.CreateNoWindow = true;
    info.StandardOutputEncoding = Encoding.UTF8;
    //info.WorkingDirectory = <folder_with_processing_files> - this statement was missed
    
    p.StartInfo = info;
    

    此代码开始与指定的 WorkingDirectory 一起正常工作。

    这是我们的问题,但在这种情况下 TF.exe 输出消息有点混乱。

    【讨论】:

      猜你喜欢
      • 2021-10-13
      • 2017-05-24
      • 2011-07-27
      • 2011-06-04
      • 1970-01-01
      • 2017-01-15
      • 2018-04-20
      • 1970-01-01
      • 2014-05-29
      相关资源
      最近更新 更多