无法在Eclipse中从本地TFS存储库中删除项目文件



项目文件由TFS获取(获取最新版本、导入项目、签出编辑-阻止…(撤消挂起的更改";应用。当我想从本地tfs存储库中删除项目时(连接到tfs服务器->右键单击该项目->删除->选中删除磁盘上的项目内容->确定(,会出现错误,我无法应用删除操作:

Delete Source
An exception has been caught while processing the refactoring 'Delete Source'.
Reason:
Problems encountered while deleting resources.
Could not delete files...
Problems occured while deleting files

我的本地Eclips工作区是D:\denisa\workspace&TFS存储库是D:\denisa。

我更改了TFS本地存储库,并将其设置为eclips工作区(D:\denisa\workspace(,但在删除文件时也发生了同样的错误。

过了一会儿,尽管我点击了";插头";图标并连接到TFS服务器,然后再次应用删除操作有关连接的错误:

Delete Source
An exception has been caught while processing the refactoring 'Delete Source'.
Reason:
You can not remove the project ... while disconnected from your Team Foundation Server.If you wish to delete the project while offline, you may select the "Disconnect Project Permanently" to stop managing the project with Team Foundation Server. Then you may delete the project.

然后我点击";插头";图标,然后再次连接到TFS服务器,然后再次应用删除操作,同样的连接错误再次出现:

...
Reason:
You can not remove the project ... while disconnected from your Team Foundation Server....

然后我再次连接TFS项目,右键单击该项目->团队->永久断开项目连接->在出现另一个错误时执行删除操作:

Delete Source
An exception has been caught while processing the refactoring 'Delete Source'.
Reason:
Problems encountered while deleting resources.
Could not delete files...
Problems occured while deleting files

然后,我转到本地工作区,发现在.metadata文件中存在.lock文件。我关闭Eclipses,删除锁定文件,再次打开Eclipses;再次创建锁定文件。然后我转到TFS本地存储库,D:\denisa在我的情况下,Righ单击项目文件->Properties和Attributes中的Read Only被选中,我重新选中,Apply,Ok,然后手动删除文件。

如何解决这个问题?

您可以尝试以下项目:

  1. 关闭所有Eclips实例,清除TFS/DevOps缓存%LOCALAPPDATA%MicrosoftTeam Foundationx.0Cache

  2. 以管理员身份重新启动Eclips。

  3. 检查您连接到TFS/DevOps的帐户是否具有删除项目的正确权限。

最新更新