使用 powershell 从 TFS 2010 签出文件

编程入门 行业动态 更新时间:2024-10-26 04:28:58
本文介绍了使用 powershell 从 TFS 2010 签出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我只想使用 powershell 签出一条路径,并在一分钟后在 Team Foundation Server 上签入此路径.

I only want to check out a path with powershell and also check in this path one minute later at Team Foundation Server.

我该怎么做?

我已经在我的服务器上安装了 tfs power tools.

I have installed the tfs power tools at my server.

推荐答案

您不需要电动工具.只需使用带有 TFS 团队资源管理器的 Visual Studio 附带的 tf.exe 命令行实用程序.tf edit /noprompt 签出和 tf checkin /comment:$comment/noprompt 签入.查看 tf.exe 上的命令行用法以获取更多信息 tf/? 和 tf checkin/?.您将需要使用 tf.exe 的路径配置 PowerShell 会话.这通常由 VS vars 批处理文件完成.但是您应该能够像这样简单地添加到路径中:$PATH += "${VS110COMNTOOLS}..\Ide".

You don't need the power tools. Just use the tf.exe command line util that comes with Visual Studio with TFS Team Explorer. tf edit <file> /noprompt to check out and tf checkin <file> /comment:$comment /noprompt to check in. Look at the command line usage on tf.exe for more info tf /? and tf checkin /?. You will need to configure your PowerShell session with the Path to tf.exe. This is usually done by the VS vars batch files. But you should be able to simply add to the path like so: $PATH += "${VS110COMNTOOLS}..\Ide".

更多推荐

使用 powershell 从 TFS 2010 签出文件

本文发布于:2023-11-28 15:47:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643016.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   powershell   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!