2016-09-09 11 views

答えて

1

スタートTFSにおけるカスタムハブ(タブ)に、このドキュメントの手順に従います。https://www.visualstudio.com/en-us/docs/integrate/extensions/get-started/node

マニフェストファイルの "寄稿"で、Menbバーにハブを追加する場合は、 "targets"は "ms.vss-web.project-hub-groups-collection"にする必要があります。マニフェストファイルの例を以下に示します。

{ 
    "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

+0

お返事ありがとうございます。これはTFS 15の「前提条件」でも機能しますか? –

+0

はい、構内TFS15でも動作します。 –

関連する問題