[英]Is there a way to easily share Workspace settings (folder mappings) for Visual Studio Online / Team Foundation Server?
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 ). 我想从所有项目的单个Visual Studio(在线)工作空间转变为为每个项目提供单独的工作空间(因为: http : //blogs.msdn.com/b/phkelley/archive/2013/05/30 /using-multiple-workspaces-with-visual-studio.aspx )。
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. 这一切都很好,但现在我想向同事们推出这种新方法,并且遇到了一个问题,看起来没有简单的方法与他们共享Workspace设置。
Here is the official advice from an MSDN article for VS 2013 titled "Create and work with workspaces": 以下是VS 2013的MSDN文章中的官方建议,标题为“创建和使用工作区”:
Q: Can I reuse and share folder mappings?
问:我可以重用和共享文件夹映射吗?
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.
要与您的队友共享文件夹映射,请将它们粘贴到文本文件中,然后共享该文件。
source: http://msdn.microsoft.com/en-us/library/ms181383.aspx#copy_paste
来源: http : //msdn.microsoft.com/en-us/library/ms181383.aspx#copy_paste
I think the answer should have been "No. There is no way exporting and importing Workspace folder mappings" . 我认为答案应该是“否。无法导出和导入Workspace文件夹映射” 。 The suggestion to "paste them into a text file and share the file" is simply hilarious.
“将它们粘贴到文本文件并共享文件”的建议简直就是热闹。
My research has turned up that for the server version of Team Foundation Server there is a thing called workspace templates: 我的研究发现,对于Team Foundation Server的服务器版本,有一个叫做工作区模板的东西:
With workspace templates you can provide your developers with a standard way of organizing their workspace.
使用工作区模板,您可以为开发人员提供组织工作区的标准方法。 Your whole team uses the same structure and enjoys all the benefits.
您的整个团队使用相同的结构并享受所有好处。
http://roadtoalm.com/2011/10/25/hidden-gems-in-tfspart-6-managing-workspaces-in-tfs-with-workspace-templates/
http://roadtoalm.com/2011/10/25/hidden-gems-in-tfspart-6-managing-workspaces-in-tfs-with-workspace-templates/
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? 所以我的问题是:有没有办法轻松共享Visual Studio Online / Team Foundation Server的Workspace设置(文件夹映射)? 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. 我会回答我自己的问题:是的,有一个简单的方法。
Install "Microsoft Visual Studio Team Foundation Server 2013 Power Tools": https://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f 安装“Microsoft Visual Studio Team Foundation Server 2013电动工具”: 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.
点击它。
Click "Team Utilities". 单击“Team Utilities”。
Click "Add Template". 单击“添加模板”。
Select the Workspace you want to create a template for and click "Create". 选择要为其创建模板的工作区,然后单击“创建”。
Review the settings of the template and click "Create". 查看模板的设置,然后单击“创建”。
Your new template will be appear under "Workspace Templates" for all other team members after they have installed the Power Tools. 安装了Power Tools后,所有其他团队成员的新模板将显示在“工作区模板”下。 When they click the template a Create Workspace dialog will open, based on the settings in the template.
单击模板后,将根据模板中的设置打开“创建工作区”对话框。
Thanks to @EdwardThomson for pointing me in the right direction. 感谢@EdwardThomson指出我正确的方向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.