多个项目是否应该有多个 TFS 工作区? [英] Should multiple projects have multiple TFS workspaces?

查看:25
本文介绍了多个项目是否应该有多个 TFS 工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们大约在 6 个月前从 VSS 迁移到 TFS.我们存储项目的方式是按类别(Windows 应用程序、Web 应用程序、Infopath、SQLScripts,已弃用)对它们进行分组.在Windows App"工作区下,我们可能有 3 个 .NET 项目.Web 应用程序"可能有 3 个等等.VSS 更多地用于存储代码存储库,而不是 VSS 可能提供的任何实际功能.

We migrated from VSS to TFS about 6 months ago. Our way of storing projects was that we grouped them by category (Windows App, Web App, Infopath, SQLScripts, deprecated). Under the 'Windows App' workspace we might have 3 .NET projects. The 'Web App' might have 3, etc, etc. VSS was used more just to store the code repository than any real functionality VSS might provide.

Windows 应用程序($/Windows 应用程序/工作区)
-->应用1
-->App2
-->App3

Windows App ($/Windows App/ workspace)
-->App1
-->App2
-->App3

Web 应用程序($/Web 应用程序/工作区)
-->应用1
-->App2
-->App3

Web App ($/Web App/ workspace)
-->App1
-->App2
-->App3

我的问题是为每个项目设置 1 个工作区会更好吗?我认为是"的原因之一是,如果我在同一工作区中处理多个项目,当我执行诸如签入挂起的更改之类的操作时,它将显示所有挂起的更改,包括我目前可能没有工作的其他项目

The question I have is would it be better to have 1 workspace for EACH project? One of the reasons I think for 'yes' is that if I am working on multiple projects in the same workspace when I do things like check in pending changes it will show me ALL of the pending changes including other projects I might not be currently working in.

Web App/App1($/Web App/App1 工作区)
Web App/App2($/Web App/App2 工作区)
Web App/App3($/Web App/App3 工作区)

Web App/App1 ($/Web App/App1 workspace)
Web App/App2 ($/Web App/App2 workspace)
Web App/App3 ($/Web App/App3 workspace)

我想我正在寻找最佳实践响应.

I guess I'm looking for a best practices response.

谢谢.

推荐答案

在我正在处理的项目中,我们有多个分支用于不同版本的应用程序,我(个人)为每个分支创建了一个不同的工作区.每个分支本身就是一个项目".

On the project I'm working on we have several branches for different versions of our application, and I (personally) create a different workspace for each branch. Each branch is a 'project' in itself.

很好,因为它将您的待定更改本地化到该工作区 - 因此当我在分支 2 上工作时,我对分支 1 的待定更改不会显示.

It's nice, because it localizes your pending changes to that workspace - so my pending changes for branch 1 don't show up when I'm working on branch 2.

我刚刚阅读了您答案的最后一部分 - 是的,每个工作区的待定更改是一个非常好的功能,我认为以这种方式做事是最佳实践.

I just read the last part of your answer - yeah, pending changes for each workspace is a really nice feature, and I'd consider it a best practice to do things this way.

这篇关于多个项目是否应该有多个 TFS 工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆