开发者

Corrupted TFS project

开发者 https://www.devze.com 2023-02-04 07:54 出处:网络
I\'m banging my head for several hours but couldn\'t find the solution on my problem. I have a team proj开发者_运维技巧ect collection. one of the project in collection is corrupted probably. It doesn\

I'm banging my head for several hours but couldn't find the solution on my problem. I have a team proj开发者_运维技巧ect collection. one of the project in collection is corrupted probably. It doesn't show up either in Team Explorer nor in TFS Administrator. but I can see that project in Source Control Explorer from VS. I tried TFSDeleteProject but it says:

TF200016: The following project does not exist:........

I can't create a team project with same name, nor I can delete it. I looked at the database and there are entries about the corrupt project in many tables. Any idea how to remove it? maybe with the help of some SPs? I tried DeleteProject stored procedure, it didn't show an error, but it also didn't delete the project.

thanks.


Have you tried simply deleting it from source control?

TFS is comprised of several components (issue tracker, reports, source control, etc.), which, although typically used together, can also function individually. A file/folder in source control that does not belong to any project is thus possible. I don't know if you can create this situation manually, but it could result from a bug.


You need to use tfsdeleteproject to remove this.

The DB isn't corrupt, you cannot delete Team Project level source control folders through the UI.

tfsdeleteproject /collection:<url> <teamproject|srcfoldername>

You can always get the collection url by selecting the collection node in Team Explorer and hitting F4 to view the properties pane. Copy/paste the url. The Source Control folder you are trying to delete is likely the same as your Team project name.

0

精彩评论

暂无评论...
验证码 换一张
取 消