如何删除TFS中的团队和其下的所有团队项目

来源:互联网 发布:淘宝详情页设置倒计时 编辑:程序博客网 时间:2024/05/18 09:06
本人是在TFS 2013版本上进行的操作,若版本不一致,可以用TFSDeleteProject.exe/?看一下命令的帮助,稍作调整即可。

TFSDeleteProject.exe是微软提供用于彻底删除指定团队以及其下的所有项目的命令,一般位于C:\ProgramFiles\Microsoft Visual Studio 12\Common7\IDE\目录(你的VS2013安装目录可能与我不同)。

命令格式:
TFSDeleteproject [/q] [/force] [/excludewss] /collection:URLTeamProjectName

参数定义:

选项

描述

/q

可选。 使用安静模式。 不提示用户进行确认。

/force

可选。 指定即使无法删除某些组件,也应继续删除过程。

/excludewss

可选。 指定不删除与团队项目关联的SharePoint 站点。 指定此选项以维护现有站点,以便其他团队项目可以继续使用它。

URL"xml:space="preserve" style="font-family: 'Microsoft YaHei UI','Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana,Arial, Helvetica, sans-serif !important;">/collection:URL

必需。 指定团队项目集合的URI。 ServerName:Port/VirtualDirectoryName/CollectionName"xml:space="preserve" style="font-family: 'Microsoft YaHei UI','Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana,Arial, Helvetica, sans-serif !important;">必须对 URI使用以下格式:http://ServerName:Port/VirtualDirectoryName/CollectionName

如果不指定虚拟目录,则必须对 URI 使用以下格式:

ServerName:Port/CollectionName." xml:space="preserve" style="font-family: 'Microsoft YaHei UI','Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana,Arial, Helvetica, sans-serif !important;">http://ServerName:Port/CollectionName.

TeamProjectName

必需。 项目的名称。 如果名称包含空格,则将其包含在引号中。


例如,要强制删除TFSServer服务器上的MVC团队项目,则可以使用下列命令:
TFSDeleteProject.exe /q /force/collection:http://TFSServer:8080/tfs MVC
注:上面8080是TFS服务器的端口号,tfs是虚拟目录

若需要看微软官方的详细介绍,可访问下列链接:
http://msdn.microsoft.com/zh-cn/library/ms181482.aspx
0 0
原创粉丝点击