- Get the latest version of Node (https://nodejs.org/en/download/)
- Get tfx-cli to package extension
npm i -g tfx-cli
- Create the task folder to hold scripts, modules and metadata file
- Create the extension manifest file - vss-extension.json
- Create the task metadata file - task.json
- For powershell task, create ps_modules folder and run the following powershell command and remove the version folder
Save-Module -Name VstsTaskSdk -Path .\
- Package the extension
tfx extension create --manifest-globs vss-extension.json
- Upload and share the extension (http://aka.ms/vsmarketplace-manage)
https://docs.microsoft.com/en-us/vsts/extend/develop/add-build-task#optional-install-and-test-your-extension https://github.com/Microsoft/vsts-task-lib/blob/master/powershell/Docs/Consuming.md