TFS - 刷新团队项目
我的团队正在迁移到 TFS,目前正在测试从 VSS 的迁移。 VSS 转换器要求在转换之前创建所有 TFS 项目。我们有超过 30 个项目,创建这些项目非常耗时。
有没有什么方法可以在测试之间刷新项目的源代码控制部分(将它们返回到原始空白状态),同时保持项目完好无损,从而允许我们运行多个转换测试,而不必每次都重新创建项目集合和项目?
[编辑]
回答下面约翰的问题:创建团队项目 TFS 时,默认情况下会创建一个同名的空源代码管理文件夹,并将其与该团队项目关联。转换文件要求源代码管理文件夹可用。
My team is moving to TFS and we are currently testing migration from VSS. The VSS Converter requires all TFS projects to be created prior to conversion. We have upwards of 30 projects and it is time consuming to create these.
Is there any way to refresh the source control portion of our projects between tests (returning them to their original blank state) while leaving the projects intact, thereby allowing us to run multiple conversion tests without having to recreate our project collection and projects every time?
[Edit]
To answer John's question below: When creating a Team Project TFS, by default, creates an empty source control folder by the same name and associates it with that Team Project. The conversion file requires that source control folder to be available.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将做出一些假设。
line :-)
我认为在这种情况下“tf destroy”命令将成为你的朋友。
例如“tf destroy $/TeamProject1/FolderToBeWiped”
您可以轻松编写一个脚本来擦除源代码管理中的所有现有文件夹。请注意,不要执行“tf destroy $/”,因为这会删除团队项目的源代码控制部分,并且您需要再次创建它。
I'm going to make some assumptions.
line :-)
I think in this scenario the "tf destroy" command is going to be your friend.
e.g. "tf destroy $/TeamProject1/FolderToBeWiped"
You could easily write a script that wipes all of your existing folders in source control. As a word of caution, DO NOT do "tf destroy $/" as this will take out the Source Control part of the team project(s) and you'll need to create it (them) again.
作为后续工作,我终于找到了一种自动创建所需项目的方法。本质上,该过程是删除并重新创建集合,然后从 xml 映射文件生成项目。如果有人感兴趣,我将其写在博客
http://irwinj.blogspot.com /2011/05/tfsautomated-project-creation.html
As a follow-up, I finally found a way to automatically create the requisite projects. Essentially the process is to drop and recreate the collection, then generate the projects from your xml mapping file. If anyone is interested I blogged it here
http://irwinj.blogspot.com/2011/05/tfsautomated-project-creation.html