如何获取tf.exe(TFS命令行客户端)?

发布于 2024-10-28 04:57:17 字数 37 浏览 2 评论 0原文

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

What's the minimum amount of software I need to install to get the 'tf.exe' program?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

歌枕肩 2024-11-04 04:57:17

您需要安装团队资源管理器,最好安装与您正在使用的 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.

梨涡少年 2024-11-04 04:57:17

我在虚拟机中,并试图使 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 会生成一条很好的错误消息,准确地告诉您缺少哪些内容。

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:

  • 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

(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.

姐不稀罕 2024-11-04 04:57:17

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

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

- 将 {EDITION} 替换为适当的版本名称(“企业”、“专业”或“社区” ")

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

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")

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

For Visual Studio 2022, it can be found here :

C:\Program Files\Microsoft Visual Studio\2022\{EDITION}\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe
一绘本一梦想 2024-11-04 04:57:17

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

烟酒忠诚 2024-11-04 04:57:17

供参考:这些是 Visual Studio 2017 所需的 DLL(@ijprest 对于 VS 2010 也是如此),

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%"

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

For reference: these are the required DLLs for Visual Studio 2017 (as did @ijprest for the VS 2010)

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

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.

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

<run deployment scripts from "%WorkSpaceLocalFolder%" >

rmdir "%WorkSpaceLocalFolder%"

(Sorry to post this as an answer, but I don't have enough reputation to comment, which I believe it should have been)

泡沫很甜 2024-11-04 04:57:17

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

The tf.exe command line is included in the VSTS agent package in folder externals\vstsom.

隐诗 2024-11-04 04:57:17

您还可以尝试 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.

白龙吟 2024-11-04 04:57:17

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

捶死心动 2024-11-04 04:57:17

版本 2022 的更新:

导航至:

C:\Program Files\Microsoft Visual Studio\2022\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer

创建工作区

tf workspace -new WORKSPACE_NAME -collection:https://YOUR_ACCOUNT.visualstudio.com/DefaultCollection/

然后获取文件

tf get /recursive

Update for Version 2022:

Navigate to:

C:\Program Files\Microsoft Visual Studio\2022\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer

Create a Workspace

tf workspace -new WORKSPACE_NAME -collection:https://YOUR_ACCOUNT.visualstudio.com/DefaultCollection/

Then grab your files

tf get /recursive
表情可笑 2024-11-04 04:57:17

遵循上面的早期答案,但基于 VS 2019 安装;
我需要运行“tf git access”命令,并从以下位置复制以下文件:

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

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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文