如何解决 Eclipse Team Foundation Server 下载映射错误?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16889331/
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-09-19 20:39:33  来源:igfitidea点击:

How to solve Eclipse Team Foundation Server download Mapping Error?

eclipsetfs

提问by Sstx

I'm working on Eclipse Team Foundation Server Explore(TFS), but once I Disconnect Project and delete it(Select delete Contents in the popup dialog),then I download the Project in TFS,it comes a yellow exclamation mark front of the project menu,and it is said "The selected project is mapped locally to the folder for project and cannot be imported".But I was sure that My local file isn't exist and it's deleted by me. So I want to know is it a way to remove the mapping? I'm bother to it for I need to create a new workspace while I want to download the project after deleting the project.Thanks for your help.

我正在处理 Eclipse Team Foundation Server Explore(TFS),但是一旦我断开项目并删除它(在弹出对话框中选择删除内容),然后我在 TFS 中下载项目,它在项目前面出现一个黄色感叹号菜单,并说“所选项目在本地映射到项目文件夹,无法导入”。但我确定我的本地文件不存在并且被我删除了。所以我想知道这是一种删除映射的方法吗?我很烦恼,因为我需要创建一个新的工作区,而我想在删除项目后下载该项目。感谢您的帮助。

采纳答案by Edward Thomson

Team Foundation Server workspace mappings exist both on the server andon the client. "Disconnect Project Permanently" disconnects Team Explorer Everywhere as the source control provider from these Eclipse projects. It does notremove workspace mappings. Thus, you cannot map new folders into these existing locations.

Team Foundation Server 工作区映射存在于服务器客户端上。“永久断开项目连接”将 Team Explorer Everywhere 作为源控制提供者与这些 Eclipse 项目断开连接。它并不会删除工作区映射。因此,您无法将新文件夹映射到这些现有位置。

The "Disconnect Project Permanently" step is unnecessary here, and if you simply delete the projects in Eclipse, Team Explorer Everywhere will unmap the working folders from your workspace.

此处不需要“永久断开项目”步骤,如果您只是删除 Eclipse 中的项目,Team Explorer Everywhere 将从您的工作区取消映射工作文件夹。

回答by MojAmiri

The problem is you deleted the files directly from folder. you should remove the mapping by following the steps: - go to Team Explorer-> Source Control- Right click on folder/project you've got before - Select Remove Mapping

问题是您直接从文件夹中删除了文件。您应该按照以下步骤删除映射: - 转到团队资源管理器->源代码管理- 右键单击​​您之前拥有的文件夹/项目 - 选择删除映射

Then selected project could be Imported.

然后可以导入选定的项目。

回答by Rahul

If you have deleted your workplace and now you want to get from some other branch of TFS the error occurs for the folder is already mapped. To resolve this you can go to Team-> Manage Workspace and click on Edit to see the list of workspaces and from there you can select the workspaces which had been mapped earlier and are causing the issue.

如果您删除了您的工作区,现在您想从 TFS 的某个其他分支获取错误,则该文件夹已被映射。要解决此问题,您可以转到 Team-> Manage Workspace 并单击 Edit 以查看工作区列表,然后您可以从那里选择之前已映射并导致问题的工作区。

After that try to import again from Eclipse and it would work.

之后尝试从 Eclipse 再次导入,它会工作。

Screen shot from my Eclipse, manage workspace

来自我的 Eclipse 的屏幕截图,管理工作区

回答by arunkumar sambu

Below steps resolved the issue

以下步骤解决了问题

  1. Select Team
  2. Manage workspaces 3.Click on Edit,then you will find all Active work spaces
  3. Select the path from Source Control Folder
  4. Click on Remove button Now try to import the project
  1. 选择团队
  2. 管理工作区 3.单击编辑,然后您将找到所有活动工作区
  3. 从源代码管理文件夹中选择路径
  4. 单击“删除”按钮 现在尝试导入项目