VS 2010 和 2012 中的 TFS 工作区? [英] TFS Workspaces across VS 2010 and 2012?

查看:34
本文介绍了VS 2010 和 2012 中的 TFS 工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在 Visual Studio 2012 RC 上使用 TFS 预览版进行源代码控制.我想创建一个 SSIS 集成项目,这需要我使用 Visual Studio 2010.但是,当我从 VS 2010 连接到 TFS 时,它会自动创建一个新的工作区,并没有列出 VS 2012 工作区.

I am currently developing on Visual Studio 2012 RC using TFS Preview for source control. I would like to create an SSIS Integration project, which requires me to use Visual Studio 2010. However, when I connect to TFS from VS 2010, it automatically creates a new workspace and does not list the VS 2012 workspace.

如果我从 VS 2010 命令提示符发出 tf workspaces 命令,我只会看到 VS 2010 工作区,如果我从 VS 2012 命令提示符发出命令,我只会看到 VS2012 工作区(均表示正在使用相同的集合).

If I issue the tf workspaces command from the VS 2010 command prompt, I see only the VS 2010 workspace, and if I issue the command from the VS 2012 command prompt, I see only the VS 2012 workspace (both indicate the same colleciton is being used).

有什么方法可以让 VS 2010 看到 VS 2012 工作区?我不想为了能够将 VS 2010 用于 SSIS 项目而不必拥有两份源代码副本.

Is there some way I can get VS 2010 to see the VS 2012 workspace? I would prefer not to have to have two copies of source code just to be able to use VS 2010 for the SSIS project.

推荐答案

TFS 2012 引入了一个名为 local workspaces 的新概念,它与以前版本的 TFS(旧的默认行为现在称为服务器工作区.)本地工作区不需要只读文件,而是允许在不从服务器检出的情况下编辑文件,它们更适合小型到中型工作空间.因此,本地工作区是 TFS 2012 中的默认设置.

TFS 2012 introduces a new concept called local workspaces, which differ subtly from the behavior of workspaces in previous versions of TFS (the old default behavior is now called a server workspace.) Local workspaces do not require read-only files and instead allow files to be edited without checking out from the server, and they are intended to be more suitable for small to medium sized workspaces. For this reason, local workspaces are the default in TFS 2012.

但是,本地工作区与 TFS 2010 兼容,TFS 2010 客户端将无法使用新的本地工作区.

Local workspaces, however, are not compatible with TFS 2010 and TFS 2010 clients will not be able to use a new local workspace.

您可以将使用 VS 2012 客户端创建的工作区转换为服务器工作区.在编辑工作区"对话框中,选择高级",您可以将类型从本地"更改为服务器"工作区.

You can convert the workspace that you created with your VS 2012 client to a server workspace. In the Edit Workspace dialog, select Advanced, and you can change the type from a Local to a Server workspace.

此时,您应该能够连接到 VS 2010 并选择该 TFS 工作区.

At that point, you should be able to connect with VS 2010 and choose that TFS workspace.

(请注意,使用 tf workspaces 是不够的,因为这将返回工作区列表的缓存副本 - 您需要使用 Visual Studio 2010 或 tf.exe 命令与服务器对话.)

(Note that it's not sufficient to use tf workspaces as that will return a cached copy of your workspace list - you will need to connect to the server either with Visual Studio 2010 or with a tf.exe command that talks to the server.)

这篇关于VS 2010 和 2012 中的 TFS 工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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