团队基础服务器Web访问

时间:2016-09-09 10:29:34

标签: tfs

如何在网络访问中添加自定义菜单栏

Web Access]

1 个答案:

答案 0 :(得分:1)

开始在TFS中自定义Hub(Tab),按照本文档中的步骤操作:https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/node

在"贡献"对于清单文件,“目标”应该是" ms.vss-web.project-hub-groups-collection"如果你想在Menb栏添加一个Hub。这是我的清单文件示例:

{
  "manifestVersion": 1,
  "id": "samples-contributions-guide",
  "version": "0.1.5",
  "name": "Tingting Hub Extension",
  "description": "**********",
  "publisher": "publisher",
  "categories": [
    "Developer samples"
  ],
  "links": {
    "learn": {
      "uri": "https://github.com/Microsoft/vso-extension-samples"
    }
  },
  "targets": [
    {
      "id": "Microsoft.VisualStudio.Services"
    }
  ],
  "branding": {
    "color": "rgb(190, 39, 3)",
    "theme": "dark"
  },
  "files": [
    {
      "path": "hello-world.html",
      "addressable": true
    },
    {
      "path": "SDK/scripts",
      "addressable": true
    }
  ],
  "contributions": [
    {
      "id": "project-hub-group",
      "type": "ms.vss-web.hub-group",
      "description": "Adds a hub group at the project/team-level",
      "targets": [
        "ms.vss-web.project-hub-groups-collection"
      ],
      "properties": {
        "name": "Hub1",
        "order": 100
      }
    },
    {
      "id": "project-hub-group-hub",
      "type": "ms.vss-web.hub",
      "description": "Adds a hub to the contributed project-level hub group",
      "targets": [
        ".project-hub-group"
      ],
      "properties": {
        "name": "Hub1-1",
        "order": 100,
        "uri": " hello-world.html"
      }
    }
 ]
}

要了解有关TFS扩展的更多信息,请参阅以下示例。https://github.com/Microsoft/vsts-extension-samples