无法从Eclipse中的本地TFS存储库中删除项目文件 [英] Unable to delete project files from local TFS repository in Eclipse

查看:81
本文介绍了无法从Eclipse中的本地TFS存储库中删除项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

项目文件由TFS获取(获取最新版本,导入项目,签出进行编辑-Prevent ...).然后"撤消待更改".当我想从本地tfs存储库中删除项目时(连接到TFS服务器->右键单击项目->删除->选中删除磁盘上的项目内容->确定)出现错误,我无法应用删除操作:

Project files are take by TFS (Get Lates Version , Import Project , Check out for Edit -Prevent ...).Then "Undo Pending Changes" are applied.When I want to delete project from my local tfs repository(Connect to TFS Server ->Right click on the project -> Delete -> Delete project contents on disk is checked ->OK ) an error comes out and I cannot apply the delete operation:

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.

My local Eclips workspace is D:\denisa\workspace & TFS repository is D:\denisa.

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

I changed TFS local repository an set it as eclips workspace(D:\denisa\workspace) but same error occurs while deleting files.

过一会儿,尽管我点击了"plug"(插入)图标,然后连接到TFS服务器,然后再次应用删除操作,则发生有关连接的错误:

After a while, although I click on the "plug" icon in Team Explorer and connect to TFS server, and apply delete operation again an error occurs about connection:

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服务器,然后再次应用删除操作,再次出现相同的连接错误:

Then I click on the "plug" icon in Team Explorer and connect to TFS server again, and apply delete operation again, the same connection error comes aout again:

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

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

Then I connect TFS project again, I right click on the project ->Team ->Disconnect Project Permanently ->make Delete operaion another error comes out:

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文件.我关闭Eclips,删除.lock文件,再次打开Eclips;锁定文件再次创建.然后我进入TFS本地存储库,在我的情况下为D:\ denisa,Righ单击项目文件->在属性"和属性"中选中只读",然后我重新手工选中了应用",确定"和手动删除文件.

Then, I go to local workspace and see that in .metadata file there exist .lock file. I close Eclips, delete .lock file, open Eclips again ; lock file is created again. Then I go to TFS local repository, D:\denisa in my case, Righ Click on the project file -> Properties and in Attributes the Read Only is checked and I remved this check, Apply, Ok, and delete the file manually.

该如何解决?

推荐答案

您可以尝试以下各项:

  1. 关闭所有Eclips实例,清除TFS/DevOps缓存%LOCALAPPDATA%\ Microsoft \ Team Foundation \ x.0 \ Cache .

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

Restart the Eclips as Administrator.

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

Check whether the account you connect to TFS/DevOps has correct permission to delete a project.

这篇关于无法从Eclipse中的本地TFS存储库中删除项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆