简体   繁体   English

Visual Studio for Mac:连接到TFS

[英]Visual Studio for Mac: Connecting to TFS

Using Mac OS 10.13.6 and Visual Studio for Mac Community v7.5.4 Trying to connect to my company's TFS and access the files. 使用Mac OS 10.13.6和Visual Studio for Mac Community v7.5.4尝试连接到我公司的TFS并访问文件。 I got stuck when it would not let me create a Workspace. 当我无法创建工作区时,我陷入了困境。 I found this thread: 我发现了这个线程:

Connect VS code with TFS on mac 在Mac上将VS代码与TFS连接

It says to download from https://github.com/Microsoft/team-explorer-everywhere/releases a zip staring with TEE-CLC... which I did. 它说要从https://github.com/Microsoft/team-explorer-everywhere/下载,然后发布一个盯着TEE-CLC的zip文件...我就是这么做的。 In Terminal, when I try running the command at the 1:20 mark in this video nothing happens. 在终端中,当我尝试在此视频中的1:20标记处运行命令时,没有任何反应。 I double click the tf command in my Finder window and a Terminal window opens showing "Saving session...copying shared history...saving history...[Process completed]". 我在Finder窗口中双击tf命令,然后打开一个终端窗口,显示“正在保存会话...正在复制共享历史记录...正在保存历史记录... [处理完成]”。 Again, nothing happens. 同样,什么也没发生。

I think I'm the only person at my company who is trying to use VS for Mac. 我认为我是公司中唯一尝试在Mac上使用VS的人。 Any thoughts?? 有什么想法吗?? I'm at the end of my rope just about. 我快要走到尽头了。

The thread you are referring to is for Visual Studio Code . 您引用的线程是针对Visual Studio Code Since you are using Visual Studio for Mac , you should refer to the article below to connect to TFS: 由于您使用的是Visual Studio for Mac ,因此应参考下面的文章以连接到TFS:

https://docs.microsoft.com/en-us/visualstudio/mac/tf-version-control https://docs.microsoft.com/zh-cn/visualstudio/mac/tf-version-control

First, check the requirements of connecting to Team Foundation version control from VS for Mac, to see whether your environment meets the requirements: 首先,检查从VS for Mac连接到Team Foundation版本控制的要求,以查看您的环境是否满足要求:

  • Visual Studio Community, Professional, or Enterprise for Mac version 7.5 or later. Visual Studio Community,Professional或Enterprise for Mac 7.5或更高版本。
  • Visual Studio Team Services, or Team Foundation Server 2013 and later. Visual Studio Team Services或Team Foundation Server 2013及更高版本。
  • A Project in Visual Studio Team Services or Team Foundation Server, configured to use Team Foundation Version Control. Visual Studio Team Services或Team Foundation Server中的项目,配置为使用Team Foundation版本控制。

Then follow the steps below to install the extension and connect to VSTS/TFS: 然后按照以下步骤安装扩展程序并连接到VSTS / TFS:

  1. In Visual Studio for Mac, choose Visual Studio > Extensions ... from the menu. 在Mac的Visual Studio中,从菜单中选择“ Visual Studio” >“ 扩展 ...”。 In the Gallery tab, select Version Control > Team Foundation Version Control for TFS and VSTS and click Install …: 在“ 库”选项卡中,选择“ 版本控制” > “ TFS和VSTS的Team Foundation版本控制” ,然后单击“ 安装 …”:

在此处输入图片说明

  1. Updates to the TFVC extension are made periodically. 定期更新TFVC扩展。 To access updates, choose Visual Studio > Extensions ... from the menu and select the Updates tab. 要访问更新,请从菜单中选择“ Visual Studio” >“ 扩展 ...”,然后选择“ 更新”选项卡。 Select the extension in the list and press the Update button: 在列表中选择扩展名,然后按更新按钮:

在此处输入图片说明

  1. Once the extension is installed, select the Version Control > TFS/VSTS > Open from Remote Repository menu item. 安装扩展后,选择“ 版本控制” >“ TFS / VSTS” >“ 从远程存储库打开”菜单项。

Choose either Visual Studio Team Services or Team Foundation Server to get started and press Continue : 选择Visual Studio Team Services或Team Foundation Server开始使用,然后按Continue

在此处输入图片说明

  1. Enter the TFS server information or VSTS credential, and select a project. 输入TFS服务器信息或VSTS凭据,然后选择一个项目。

After installing the extension, you can create a workspace from the Workspace combobox in the Open from Source Control dialog: 安装扩展后,可以从“ 从源代码管理中打开”对话框的“ 工作区”组合框中创建工作

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM