101

要获得“tf.exe”程序,我需要安装的最少软件数量是多少?

4

9 回答 9

92

您需要安装Team Explorer,最好安装与您使用的 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 功能。

于 2011-03-31T22:53:55.057 回答
59

我在虚拟机中,并试图让我的 VHD 尽可能小,所以我发现 Team Explorer 是一个非常重量级的解决方案(300+ MB 安装)。作为替代方案,我有幸将一组最小的 EXE/DLL 从 Team Explorer 安装复制到干净的机器上(当然,仍然需要 .NET 4.0)。

到目前为止,我只尝试了一些操作,但是这组文件(大约 8.5 MB)已经足以通过 tf.exe 获得基本的源代码控制功能:

  • TF.exe
  • TF.exe.config
  • Microsoft.TeamFoundation.dll
  • Microsoft.TeamFoundation.Client.dll
  • Microsoft.TeamFoundation.Common.dll
  • Microsoft.TeamFoundation.Common.Library.dll
  • Microsoft.TeamFoundation.VersionControl.Client.dll
  • Microsoft.TeamFoundation.VersionControl.Common.dll
  • Microsoft.TeamFoundation.VersionControl.Controls.dll

(不用说,这是一个完全不受支持的解决方案,它不会让您摆脱正常的 TFS 许可要求。)

根据您执行的操作,您可能会发现需要额外的 DLL。幸运的是,tf.exe 会产生一个很好的错误消息,告诉你哪些是丢失的。

于 2011-09-23T22:25:34.417 回答
48

对于 Visual Studio 2017 和 2019,可以在这里找到:

- 将{ YEAR } 替换为适当的年份(“ 2017 ”、“ 2019 ”)。

- 将{ EDITION } 替换为适当的版本名称(“ Enterprise ”、“ Professional ”或“ Community ”)

C:\Program Files (x86)\Microsoft Visual Studio\{YEAR}\{EDITION}\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\tf.exe

对于 Visual Studio 2022,可以在这里找到:

C:\Program Files\Microsoft Visual Studio\2022\{EDITION}\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe
于 2018-03-02T00:05:27.993 回答
11

Team Explorer Everywhere 安装中有一个 Java TFS 客户端(连同一个 Eclipse 插件)。看看http://www.microsoft.com/en-us/download/details.aspx?id=30661

于 2013-01-31T09:51:07.883 回答
8

供参考:这些是 Visual Studio 2017 所需的 DLL(就像 VS 2010 的 @ijprest 一样)

TF.exe
TF.exe.config
Microsoft.TeamFoundation.Client.dll
Microsoft.TeamFoundation.Common.dll
Microsoft.TeamFoundation.Core.WebApi.dll
Microsoft.TeamFoundation.VersionControl.Client.dll
Microsoft.TeamFoundation.VersionControl.Common.dll
Microsoft.TeamFoundation.VersionControl.Controls.dll
Microsoft.VisualStudio.Services.Client.Interactive.dll
Microsoft.VisualStudio.Services.Common.dll
Microsoft.VisualStudio.Services.WebApi.dll

它们将在我的基本 VM 映像中。在安装新服务器时,我将使用它将最新的部署脚本从 VC 拉到临时的本地工作区文件夹。

tf workspace /new ... 
tf workfold /map ...
tf get "%WorkSpaceLocalFolder%" /recursive
tf workfold /unmap 
tf workspace /delete

<run deployment scripts from "%WorkSpaceLocalFolder%" >

rmdir "%WorkSpaceLocalFolder%"

(很抱歉将其发布为答案,但我没有足够的声誉发表评论,我认为应该如此)

于 2018-10-26T09:59:22.640 回答
5

tf.exe 命令行包含在文件夹 externals\vstsom 中的 VSTS 代理程序包中。

于 2017-06-22T05:47:29.913 回答
4

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

于 2018-07-20T12:07:58.947 回答
3

您还可以尝试适用于 Node.js 的TFS CLI,它是 Microsoft Team Foundation Server 和 Visual Studio Team Services 的跨平台 CLI。

于 2017-06-12T18:25:58.463 回答
0

继上述较早的答案之后,但基于 VS 2019 安装;
我需要运行“ tf git permission ”命令,并从以下文件复制:

C:\Program Files (x86)\Microsoft Visual Studio\2019\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer

Microsoft.TeamFoundation.Client.dll
Microsoft.TeamFoundation.Common.dll
Microsoft.TeamFoundation.Core.WebApi.dll
Microsoft.TeamFoundation.Diff.dll
Microsoft.TeamFoundation.Git.Client.dll
Microsoft.TeamFoundation.Git.Contracts.dll
Microsoft.TeamFoundation.Git.Controls.dll
Microsoft.TeamFoundation.Git.CoreServices.dll
Microsoft.TeamFoundation.Git.dll
Microsoft.TeamFoundation.Git.Graph.dll
Microsoft.TeamFoundation.Git.HostingProvider.AzureDevOps.dll
Microsoft.TeamFoundation.Git.HostingProvider.GitHub.dll
Microsoft.TeamFoundation.Git.HostingProvider.GitHub.imagemanifest
Microsoft.TeamFoundation.Git.Provider.dll
Microsoft.TeamFoundation.SourceControl.WebApi.dll
Microsoft.TeamFoundation.VersionControl.Client.dll
Microsoft.TeamFoundation.VersionControl.Common.dll
Microsoft.TeamFoundation.VersionControl.Common.Integration.dll
Microsoft.TeamFoundation.VersionControl.Controls.dll
Microsoft.VisualStudio.Services.Client.Interactive.dll
Microsoft.VisualStudio.Services.Common.dll
Microsoft.VisualStudio.Services.WebApi.dll
TF.exe
TF.exe.config
于 2021-01-23T17:36:18.257 回答