IMPORTANT: This repository is archived and will be deleted in the future. Please don't rely on the code in this repository when building Azure DevOps extensions. Instead, please refer to the updated Azure DevOps sample extension here:
https://github.com/microsoft/azure-devops-extension-sample
Samples to help jump-start your development of extensions for Visual Studio Team Services (VSTS).
If you plan to package any of the sample extensions, get:
npm install -g tfx-cli
)npm install -g bower
)If you plan to compile any of the sample extensions, get:
npm install -g typescript
)Each web extension sample has a bower.json
or package.json
file, which references third-party libraries used by the sample, including the Visual Studio Services Web Extension SDK. This SDK JavaScript file is required by all web extensions.
From the directory of the sample, run:
If there is a bower.json file present
bower install
or if there is only a package.json file present
npm install
Once the package is installed, simply run tsc
. You can alternatively run npm run build
, which ensures the correct version of the TypeScript compiler is used. This will also generate the extension package.
Most samples can be run without any modifications on Visual Studio Team Services. The steps are:
vss-extension.json
) either has the public
attribute set to false
or is not specified (this ensures your extension is not inadvertently made available to all VSTS users)tfx extension create --publisher MYPUBLISHERID
)See the full instructions.
See the places where you can extend and enhance the user's web experience with an extension ---- right from within the web experience.
Learn about advanced extension concepts like module loading, using UI controls, history, and more.
Note: this sample is written in TypeScript.
Explore different UI controls, including menus, toolbars, custom controls, and more.
Custom event source for the Team Calendar extension for public holidays.
This sample extension shows how to make a tab/section contribution to build summary page, reacting to build updates.
This also has a sample code that allows user to render custom data results uploaded from a particular task in build.
You could contribute to build results view in different ways:
Contributing as a tab and a section to our own tab -
Contributing as a section to "summary" tab -
This sample is written in TypeScript. The compiled JS files are included in the /out directory, but changes will need to be re-compiled. Open readme.txt for instructions.
Once this extension is installed, it shows an enhanced view of the deployment status to each environment
This extension showcases
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.