2013-06-27 34 views
4

我試圖從Team Foundation Service刪除項目,我收到此錯誤:上visualstudio.com從Team Foundation Server中刪除項目

TF200016: The following project does not exist: PetraERP_1. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server.

這是我使用的命令是:

TFSDeleteProject /force /collection:https://mydomain.visualstudio.com/DefaultCollection PetraERP_1 

的項目路徑爲$/Petra Solutions/PetraERP_1

+0

我意識到這裏命名不好,但是'PetraERP_1'是* Visual Studio Project *,它不是* Team Project *。 –

+0

作爲一個說明 - 在TFS 2013從管理控制檯刪除項目是可能的,因此不需要命令行命令 –

回答

4

Petra Solutions是團隊項目名稱。

刪除這將刪除所有您的代碼,工作項目,構建,一切!它是而不是可恢復。

如果是這種情況,那麼現在Web Access中有一個選項可以做到這一點。

或者通過命令行:

TFSDeleteProject /force /collection:https://mydomain.visualstudio.com/DefaultCollection "Petra Solutions" 

如果情況並非如此,你只是想刪除的代碼PetraERP_1文件夾,您想要的tf delete命令行僅刪除源代碼(此是可恢復的)。要使用tf delete,您需要檢出代碼的工作副本。您可以使用映射到該路徑的Workspace中的tf get命令執行非遞歸結帳。

+0

我不想刪除完整的項目名稱,只有特定的文件夾,我解決了它,你應該映射完整解決方案「Petra Solutions」,然後您可以刪除它 – Raad