如何获取tf.exe(TFS命令行客户端)?
要获取“tf.exe”程序,我需要安装的最少软件数量是多少?
What's the minimum amount of software I need to install to get the 'tf.exe' program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
您需要安装团队资源管理器,最好安装与您正在使用的 TFS 版本相匹配的 Team Explorer 版本,例如,如果您使用的是 TFS 2010,则安装 Team Explorer 2010。2012
版本 http://www.microsoft.com/en-gb/download/details.aspx?id=30656
2013 版本http://www.microsoft.com/en-us/download /details.aspx?id=40776
2019 版本 https: //visualstudio.microsoft.com/downloads/#visual-studio-team-explorer-2019
您可能还对 TFS 电动工具。他们添加了一些额外的命令行功能(使用
tfpt.exe
),还添加了一些额外的 IDE 功能。You need to install Team Explorer, it's best to install the version of Team Explorer that matches the version of TFS you are using e.g. if you're using TFS 2010 then install Team Explorer 2010.
2012 version http://www.microsoft.com/en-gb/download/details.aspx?id=30656
2013 version http://www.microsoft.com/en-us/download/details.aspx?id=40776
2019 version https://visualstudio.microsoft.com/downloads/#visual-studio-team-explorer-2019
You also might be interested in the TFS power tools. They add some extra command line features (using
tfpt.exe
) and also add some extra IDE features.我在虚拟机中,并试图使 VHD 尽可能小,因此我发现 Team Explorer 是一个真正重量级的解决方案(安装 300+ MB)。作为替代方案,我很幸运地将一组最小的 EXE/DLL 从 Team Explorer 安装复制到干净的计算机(当然,仍然需要 .NET 4.0)。
到目前为止,我只尝试了一些操作,但这组文件(大约 8.5 MB)足以通过 tf.exe 获得基本的源代码控制功能:
(不用说,这是一个完全不受支持的解决方案,并且它不会使您摆脱正常的 TFS 许可要求。)
根据您执行的操作,您可能会发现需要其他 DLL。幸运的是,tf.exe 会生成一条很好的错误消息,准确地告诉您缺少哪些内容。
I'm in a virtual machine, and am trying to keep my VHD as small as possible, so I find Team Explorer is a really heavyweight solution (300+ MB install). As an alternative, I've had some luck copying a minimal set of EXEs/DLLs from a Team Explorer installation to a clean machine (.NET 4.0 is still required, of course).
I've only tried a handful of operations so far, but this set of files (about 8.5 MB) has been enough to get basic source-control functionality via tf.exe:
(It should go without saying that this is a completely unsupported solution, and it doesn't free you from the normal TFS licensing requirements.)
Depending on the operations you perform, you may find that additional DLLs are required. Fortunately, tf.exe will produce a nice error message telling you exactly which ones are missing.
对于 Visual Studio 2017 和 2017 2019,可以在这里找到:
-将 {YEAR} 替换为适当的年份(“2017”、“2019” )。
- 将 {EDITION} 替换为适当的版本名称(“企业”、“专业”或“社区” ")
对于 Visual Studio 2022,可以在此处找到:
For Visual Studio 2017 & 2019, it can be found here :
-Replace {YEAR} by the appropriate year ("2017", "2019").
-Replace {EDITION} by the appropriate edition name ("Enterprise", "Professional", or "Community")
For Visual Studio 2022, it can be found here :
Team Explorer Everywhere 安装中有一个 Java TFS 客户端(以及 Eclipse 插件)。请参阅 http://www.microsoft.com/en-us /download/details.aspx?id=30661
There is a Java TFS client in the Team Explorer Everywhere installation (together with an Eclipse plugin). Look at http://www.microsoft.com/en-us/download/details.aspx?id=30661
供参考:这些是 Visual Studio 2017 所需的 DLL(@ijprest 对于 VS 2010 也是如此),
它们将位于我的基础 VM 映像中。在安装新服务器时,我将使用它将最新的部署脚本从 VC 拉取到临时本地工作区文件夹。
(很抱歉将此作为答案发布,但我没有足够的声誉来发表评论,我认为应该如此)
For reference: these are the required DLLs for Visual Studio 2017 (as did @ijprest for the VS 2010)
They will be in my base VM image. I'm going to use it to pull the latest deployment scripts from VC to a temporary local workspace folder when installing a new server.
(Sorry to post this as an answer, but I don't have enough reputation to comment, which I believe it should have been)
tf.exe 命令行包含在文件夹 externals\vstsom 中的 VSTS 代理包中。
The tf.exe command line is included in the VSTS agent package in folder externals\vstsom.
您还可以尝试 TFS CLI for Node.js,这是 Microsoft Team Foundation 的跨平台 CLI服务器和 Visual Studio 团队服务。
You can also try TFS CLI for Node.js which is a cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services.
Visual Studio 2017 团队资源管理器
根据 https://blogs.msdn.microsoft.com/bharry/2017/04/05/team-explorer-for-tfs-2017/ 您现在可以通过以下链接从 Visual Studio 单独下载它:
https://www.visualstudio.com/thank- you-downloading-visual-studio/?sku=TeamExplorer&rel=15
Visual Studio 2017 Team Explorer
According to https://blogs.msdn.microsoft.com/bharry/2017/04/05/team-explorer-for-tfs-2017/ you can now download it separately from Visual Studio via this link:
https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=TeamExplorer&rel=15
版本 2022 的更新:
导航至:
创建工作区
然后获取文件
Update for Version 2022:
Navigate to:
Create a Workspace
Then grab your files
遵循上面的早期答案,但基于 VS 2019 安装;
我需要运行“tf git access”命令,并从以下位置复制以下文件:
C:\Program Files (x86)\Microsoft Visual Studio\2019\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
Following on from the earlier answers above but based on a VS 2019 install ;
I needed to run "tf git permission" commands, and copied the following files from:
C:\Program Files (x86)\Microsoft Visual Studio\2019\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer