powershell - 使用 powershell 从 TFS 2010 checkout 文件

标签 powershell tfs powershell-2.0

我只想用 powershell check out 一条路径,并在一分钟后在 Team Foundation Server 上检入这条路径。

我怎样才能做到这一点?

我已经在我的服务器上安装了 tfs 电动工具。

最佳答案

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

关于powershell - 使用 powershell 从 TFS 2010 checkout 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13685993/

相关文章:

powershell - powershell 中的这些对象是什么(1GB、11GB,...)

tfs - 如何设置特定用户为审阅者

git - 将一些项目从一个用户帐户移动到另一个

visual-studio - Windows 工作流设计器元数据编辑器(vs.net 2010)

windows - 使用 PowerShell 重命名文件

powershell - 在 PowerShell 中检查文件的最后一行是否为空

function - 将Unix时间转换为GMT +1

function - 如何验证允许使用空数组的PowerShell函数参数?

parsing - 如何在Powershell中处理参数的多个选项?

powershell - Powershell:过滤事件日志