visual-studio - 有没有办法轻松共享 Visual Studio Online/Team Foundation Server 的工作区设置(文件夹映射)?

标签 visual-studio tfs azure-devops

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

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

以下是来自 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



我认为答案应该是“不。没有办法导出和导入工作区文件夹映射”。 “将它们粘贴到文本文件中并共享文件”的建议简直太搞笑了。

我的研究表明,对于 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/



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

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

最佳答案

我会回答我自己的问题:是的,有一个简单的方法。

安装“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

单击“团队实用程序”。

enter image description here

单击“添加模板”。

enter image description here

选择要为其创建模板的工作区,然后单击“创建”。

enter image description here

查看模板的设置,然后单击“创建”。

enter image description here

安装 Power Tools 后,您的新模板将出现在所有其他团队成员的“工作区模板”下。当他们单击模板时,将根据模板中的设置打开“创建工作区”对话框。

enter image description here

感谢@EdwardThomson 为我指明了正确的方向。

关于visual-studio - 有没有办法轻松共享 Visual Studio Online/Team Foundation Server 的工作区设置(文件夹映射)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27062962/

相关文章:

.net - FluentMigrator.Runner 在输出目录中复制 32 位程序集

tfs - check out 文件列表

c# - Docker 在 VS 中运行,但在发布到 AWS 时出错?错误 CS5001 : Program does not contain a static 'Main' method suitable for an entry point

api - TFS 2013 API 项目创建

tfs - TF270003 : Failed to copy

java - 如何将 Maven 依赖项添加到 Azure Pipelines

使用 "extends"的 Azure yaml 管道

azure-devops - 如何在 Azure DevOps 中使用旧名称重新创建代理池?

c# - .net 4.6 项目中缺少 XML 文档注释的枚举类

c# - 为什么 System.Design 中的许多 Designer 类都标记为内部类?