visual-studio 如何取消项目映射?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3058059/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:07:22  来源:igfitidea点击:

How do I unmap a project?

visual-studiotfs

提问by jaekie

How do I unmap a project in Team Foundation Server 2010?

如何在 Team Foundation Server 2010 中取消映射项目?

I changed the location of a source control, and completely removed it from TFS source control. but now it is showing up wanting to add it:

我更改了源代码管理的位置,并将其从 TFS 源代码管理中完全删除。但现在它显示想要添加它:

alt text

替代文字

Also, when I try to Map the new project, it is giving the error below. I've completely deleted the files off my local PC, and I'm wanting to map and get latest version from source control, but it gives an error trying to map. I'd rather not change the location. How do I remove the old binding and the project, when it was already deleted using TfsDeleteProject.exe?

此外,当我尝试映射新项目时,出现以下错误。我已经完全删除了本地 PC 上的文件,我想映射并从源代码管理中获取最新版本,但是尝试映射时出现错误。我宁愿不改变位置。如何删除旧的绑定和项目,当它已经使用删除时TfsDeleteProject.exe

enter image description here

在此处输入图片说明

回答by TJB

You should be able to go to Workspacesand remove/add any mappings there directly.

您应该能够转到工作区并直接在那里删除/添加任何映射。

  1. Go To Source Control Explorer
  2. Expand the Workspaces drop-downalong the toolbar in the Source Control Explorer
  3. Click the last entryto manage workspaces
  1. 转到源代码管理资源管理器
  2. 沿着源代码管理资源管理器中的工具栏展开工作区下拉菜单
  3. 单击最后一个条目以管理工作区

There you should be able to remove mappings.

在那里您应该能够删除映射。

Here is an article discussing Workspaces
http://www.woodwardweb.com/teamprise/000334.html

这是一篇讨论工作区的文章
http://www.woodwardweb.com/teamrise/000334.html

回答by Coder Panda

I would like to add something to the accepted response...

我想在接受的回复中添加一些内容...

If you have used some other credential to get code previously, then there would be a workspace already existing that would be mapped to the mentioned local folder. In that case the new credential can not be used to map the same server folder to the same local folder. You will first have to login with the older credential and delete that workspace and then you need to create a new workspace with your new ID and then map to the desired folder (which should now be unlocked) and you should be ready to go.

如果您之前使用了一些其他凭据来获取代码,那么将会有一个已经存在的工作区将映射到提到的本地文件夹。在这种情况下,不能使用新凭据将同一服务器文件夹映射到同一本地文件夹。您首先必须使用旧凭据登录并删除该工作区,然后您需要使用新 ID 创建一个新工作区,然后映射到所需的文件夹(现在应该已解锁),您应该准备好了。