TFS - 刷新团队项目

发布于 2024-10-19 03:02:27 字数 280 浏览 1 评论 0原文

我的团队正在迁移到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

同展鸳鸯锦 2024-10-26 03:02:27

我将做出一些假设。

  1. 您使用的是 TFS 2008 或 2010
  2. 您不害怕命令
    line :-)

我认为在这种情况下“tf destroy”命令将成为你的朋友。

例如“tf destroy $/TeamProject1/FolderToBeWiped”

您可以轻松编写一个脚本来擦除源代码管理中的所有现有文件夹。请注意,不要执行“tf destroy $/”,因为这会删除团队项目的源代码控制部分,并且您需要再次创建它。

I'm going to make some assumptions.

  1. you're using TFS 2008 or 2010
  2. you're not afraid of the command
    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.

花开半夏魅人心 2024-10-26 03:02:27

作为后续工作,我终于找到了一种自动创建所需项目的方法。本质上,该过程是删除并重新创建集合,然后从 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文