本文介绍了有没有一种方法可以轻松共享Visual Studio Online/Team Foundation Server的工作区设置(文件夹映射)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从为所有项目拥有一个Visual Studio(在线)工作区,到为每个项目拥有一个单独的工作区(因为: http://blogs.msdn.com/b/phkelley/archive/2013/05/30/using-multiple-workspaces-with-visual-studio.aspx ).

I want to move from having a single Visual Studio (Online) workspace for all my Projects to having a separate Workspace for each Project (because: http://blogs.msdn.com/b/phkelley/archive/2013/05/30/using-multiple-workspaces-with-visual-studio.aspx).

这一切都很好,但是现在我想向同事们推广这种新方法,并且遇到了一个问题,即似乎没有简单的方法可以与他们共享Workspace设置.

This all works out fine, but now I want to roll out this new approach to my colleagues and have come across the problem that it looks like there is no easy way to share Workspace settings with them.

这是MSDN上针对VS 2013的文章创建和使用工作区"的官方建议:

Here is the official advice from an MSDN article for VS 2013 titled "Create and work with workspaces":

A:是的.如果您想重用或与其他团队共享文件夹映射 成员,您可以复制文件夹映射.只需打开快捷方式 工作文件夹列表中的菜单,然后选择复制.重用文件夹 映射,将它们粘贴到另一个版本控制工作区或内部版本中 定义工作区.与您的共享文件夹映射 队友,将其粘贴到文本文件中,然后共享文件.

A: Yes. If you want to reuse or share folder mappings with other team members, you can copy the folder mappings. Simply open the shortcut menu in the Working folders list and choose Copy. To reuse the folder mappings, paste them into another version control workspace or a build definition workspace. To share the folder mappings with your teammates, paste them into a text file and then share the file.

源: http://msdn.microsoft.com/zh-我们/library/ms181383.aspx#copy_paste

我认为答案应该是否.无法导出和导入Workspace文件夹映射" . 将它们粘贴到文本文件并共享文件"的建议简直太搞笑了.

I think the answer should have been "No. There is no way exporting and importing Workspace folder mappings". The suggestion to "paste them into a text file and share the file" is simply hilarious.

我的研究表明,对于Team Foundation Server的服务器版本,有一个叫做工作区模板的东西:

My research has turned up that for the server version of Team Foundation Server there is a thing called workspace templates:

http://roadtoalm.com/2011/10/25/hidden-gems-in-tfspart-6-managing-workspaces-in-tfs-with-workspace-templates/

据我所知,这在Visual Studio Online(Team Foundation Server的云版本)中不可用.

As far is I know this is not available in Visual Studio Online (the cloud version of Team Foundation Server).

所以我的问题是:有没有一种方法可以轻松共享Visual Studio Online/Team Foundation Server的工作区设置(文件夹映射)?如果不是,是否有人会知道比复制/粘贴/共享建议更好的方法?

So my question is:Is there a way to easily share Workspace settings (folder mappings) for Visual Studio Online / Team Foundation Server?If not, does anybody know of a better way than the copy / paste / share suggestion?

推荐答案

我将回答我自己的问题:是的,有一种简单的方法.

I'll answer my own question: yes, there is an easy way.

安装"Microsoft Visual Studio Team Foundation Server 2013 Power工具": https ://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f

Install "Microsoft Visual Studio Team Foundation Server 2013 Power Tools": https://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f

安装后,团队资源管理器中将提供一个新选项:团队成员.单击它.

After installing you will have a new option in Team Explorer: Team Members. Click it.

点击团队实用工具".

点击添加模板".

选择要为其创建模板的工作区,然后单击创建".

Select the Workspace you want to create a template for and click "Create".

查看模板的设置,然后单击创建".

Review the settings of the template and click "Create".

所有其他团队成员在安装了Power Tools之后,您的新模板将显示在工作区模板"下.当他们单击模板时,将基于模板中的设置打开创建工作区"对话框.

Your new template will be appear under "Workspace Templates" for all other team members after they have installed the Power Tools. When they click the template a Create Workspace dialog will open, based on the settings in the template.

感谢@EdwardThomson向我指出了正确的方向.

Thanks to @EdwardThomson for pointing me in the right direction.

这篇关于有没有一种方法可以轻松共享Visual Studio Online/Team Foundation Server的工作区设置(文件夹映射)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 06:03