问题
I'm using visual studio code version 1.26.1
for angular projects.
Right now I'm using source control GIT. But I would like to change this to Team Foundation Server.
So that I have installed the Visual Studio Team Services. Once after that, I have done the following things:
Open File -> Preferences -> Settings
Add the following lines to your user settings
{ "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\tf.exe", "tfvc.restrictWorkspace": true
}
Open a local folder (repository),
From View -> Command Pallette
..., typeteam signin
When I select the sign in from command palette I got the following error
(team) No Team Services or Team Foundation Server repository configuration was found. Ensure you've opened a folder that contains a repository.
How to set up the Team Foundation Server repository. Do I need to uninstall the GIT
for use the TFS
?
回答1:
You need to open a folder containing a Local TFVC Workspace. Refer to this link for details: Team Foundation Version Control (TFVC) Support.
It supports workspaces created with Visual Studio (via tf.exe) or the JetBrains IDEs and Eclipse (via the Team Explorer Everywhere Command Line Client)
来源:https://stackoverflow.com/questions/51938308/how-to-set-up-the-team-foundation-server-repository-in-vs-code