京东11.11大促主会场领京享红包更优惠

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

2021-6-11 16:34| 发布者: zhaojun917| 查看: 3022| 评论: 0

摘要: How to connectVisual Studio CodeonmacwithTeam Foundation Server(TFS).Or any other way to connect with tfs?解决方案This are the steps to effectively connect a TFS (TFVC) Repository to your VS Code on M ...

How to connect Visual Studio Code on mac with Team Foundation Server(TFS).

Or any other way to connect with tfs?

解决方案

This are the steps to effectively connect a TFS (TFVC) Repository to your VS Code on Mac:

INSTALL THE SOFTWARE

  1. Install Visual Studio Code for Mac (currently here: https://code.visualstudio.com/download).
  2. Install the TFS extension for VS Code: Go to the Extensions tab in VS Code, Search for TFS and install.
  3. Install TEE-CLC. Follow this guide: https://www.youtube.com/watch?v=VPNaEIVZfr0&feature=youtu.be.

CREATE A LOCAL TFVC WORKSPACE IN YOUR MAC

Now you need to have a local TFVC Workspace on your machine. If you don't have one (as it was my case), you need to create it. The following steps are partially extracted from https://stackoverflow.com/a/21785438/2816119.

  1. Create a local folder where you are going to download and locally store the source code.
  2. Open a Terminal window.

  3. Create a local workspace from your terminal window with the following command:

    tf workspace -new MyWorkspace -collection:<<<http://full.URL.of/your/repository>>>
    
  4. Map your repository folder to your local folder with the following command:

    tf workfold -map '$/your/repository/folder/path' /your/local/folder/path -collection:<<<http://full.URL.of/your/repository>>> -workspace:MyWorkspace
    
  5. If everything went well, you'll see a new sub-folder ".tf" in your local folder.

  6. Open your local folder with VS Code. If everything went well you'll se after a few seconds the TFVC icons in the bottom bar: enter image description here

GET THE SOURCE CODE

To get the source code you'll need to go to the Source Control Tab -> Ellipsis (...) button -> Sync.

enter image description here

Once you press it you'll see a progress bar moving in the Source Control Tab and you'll see how the source code is downloaded to your local folder.

ENJOY

Now you can use your TFVC repository as described in their guides. If something is not clear or you have questions please let me know. I'll try to help you :-)


以下是将TFS(TFVC)存储库有效连接到Mac上的VS Code的步骤:

安装软件

  1. 安装适用于Mac的Visual Studio代码(当前位于: https://code.visualstudio.com/download).
  2. 安装VS Code的TFS扩展名:转到VS Code中的"扩展名"选项卡,搜索TFS并安装.
  3. 安装TEE-CLC.请遵循以下指南: https://www.youtube.com/watch?v = VPNaEIVZfr0& feature = youtu.be .

在您的MAC中创建本地TFVC工作空间

现在,您需要在计算机上拥有本地TFVC工作区.如果您没有(如我的情况),则需要创建它.以下步骤部分摘自 https://stackoverflow.com/a/21785438/2816119 .

  1. 在要下载和本地存储源代码的地方创建一个本地文件夹.
  2. 打开一个终端窗口.

  3. 使用以下命令从终端窗口创建本地工作区:

    tf workspace -new MyWorkspace -collection:<<<http://full.URL.of/your/repository>>>
    
  4. 使用以下命令将存储库文件夹映射到本地文件夹:

    tf workfold -map '$/your/repository/folder/path' /your/local/folder/path -collection:<<<http://full.URL.of/your/repository>>> -workspace:MyWorkspace
    
  5. 如果一切顺利,您将在本地文件夹中看到一个新的子文件夹" .tf ".

  6. 使用VS Code打开本地文件夹.如果一切顺利,则几秒钟后您将看到底部栏中的TFVC图标: 在此处输入图片描述

获取源代码

要获取源代码,您需要转到"源代码管理"选项卡-> 省略号(...)按钮-> 同步.

在此处输入图片描述

一旦按下它,您将在"源代码管理"选项卡中看到一个进度条,并且您将看到如何将源代码下载到本地文件夹中.

享受

现在,您可以按照其指南中的说明使用TFVC存储库. 如果有不清楚的地方或您有任何疑问,请告诉我.我会尽力帮助您:-)

本文地址:IT屋 » 在Mac上将VS代码与TFS连接


关闭

站长推荐上一条 /6 下一条

QQ|手机版|小黑屋|梦想之都-俊月星空 ( 粤ICP备18056059号 )

GMT+8, 2024-11-13 08:09 , Processed in 0.031431 second(s), 17 queries .

Powered by Mxzdjyxk! X3.5

© 2001-2024 Discuz! Team.

返回顶部