tfs - 无法使用 Visual Studio 代码连接到 tfvc

标签 tfs visual-studio-code azure-devops tfvc

首先,我是编程新手。我学到了很多东西(感谢我的老师 :D),现在我和我的 2 个 friend 有一个共同的项目。我们认为我们可以使用 .ASP、jQuery、C#、sql 构建网页。我是前端人员,因此我使用 Visual Studio Code。我们有一个共同的vsts。我下载了最新版本的 visual studio code 和最新版本的 team services extension,红色的大量文档解释了我需要如何执行此操作。我收到此错误消息: (团队)未找到 Team Services 或 Team Foundation Server 存储库配置。确保您已打开包含存储库的文件夹。

请有人解释我如何连接。如果您制作一个简短快速的教程视频,我将不胜感激。我几乎可以做文档或教程中的所有事情,但现在,我真的不知道我在哪里。

提前感谢您的帮助! <3

最佳答案

首先你应该使用官方 Visual Studio Team Services Extension for Visual Studio Code 由微软发布。

它同时支持TFVCGIT 版本控制类型。

Clone your Git repository

With Git, the extension uses the remote origin of your repository to determine how to connect to Team Services (or your Team Foundation Server), in most cases you will need to have a Git repository already cloned locally. If you intend on cloning an existing repository, do so before proceeding. If you do not have a Git repository cloned locally but already have a Team Services account (or a Team Foundation Server instance), you may create a local repository (via git init) and once you set the "origin" remote for that local repository, the extension will detect the change to the remote and attempt to contact the Team Services account (or Team Foundation Server).

Create your TFVC workspace

With TFVC, the extension uses information about the current workspace to determine how to connect to Team Services (or your Team Foundation Server). Workspaces can be created using the Visual Studio IDE, Eclipse or with the JetBrains IDEs (e.g, Android Studio, IntelliJ).

Note: At this time, you will need to have a local TFVC workspace already available on your local machine. More information about the difference between the two types (and how to determine which one you're using) can be found here.

您还可以观看以下视频,以帮助您快速开始使用该扩展程序:

以上是针对windows机器的,如果你在Mac上工作,请看看这个answer .

关于tfs - 无法使用 Visual Studio 代码连接到 tfvc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49988879/

相关文章:

deployment - TFS内网自动化部署策略

version-control - 我可以删除父分支吗?

visual-studio-code - ESLint 自动修复忽略规则

git - 在 Azure DevOps 中发布完成后如何创建 pull 请求?

azure - 独立扩展 Azure 函数(单个函数)

java - 部署在 Axis2-Tomcat7-Ubuntu 平台上的 Web 服务中出现 TFS Java SDK native 库异常

tfs - TFS 中的统一差异

visual-studio-code - 我应该将 .vscode 文件夹提交到源代码管理吗?

php - VSCodium (VSCode) 不启动调试 PHP (PHP Debug + Xdebug, Linux)

.net - 在 Azure Pipelines 上构建 .NET Core 3.0