Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Generate and publish vsix to Marketplace

Generate and publish vsix to Marketplace

solucionespsg

solucionespsg.com.ar
|
2 installs
| (0) | Free
The GenerateAndPublishVsixToMarketplace VSTS task Generate and publish vsix to Marketplace.

Generate and publish vsix to Marketplace

The GenerateAndPublishVsixToMarketplace VSTS task Generate and publish vsix to Marketplace:

Important

The task is in beta stage

Agent Specification: Tested on Windows-2019 and Linux.

In the windows-latest it gives an error with the npm install. It can only be used on windows-2019.

Initial steps

For initial steps. Please follow the steps in the following link:

https://learn.microsoft.com/en-us/azure/devops/extend/publish/integration?view=azure-devops

To generate a token to publish on the marketplace, follow the steps in the following link:

https://learn.microsoft.com/en-us/azure/devops/extend/publish/command-line?view=azure-devops

Intro

The task is responsible for compiling the projects that make up the vsix extension. in the file vss-extension.json

alt tag

The use of the task is simple, if you leave all the default values it should work without problems.

The function of each of the options is explained below.

Configure

These are the recommended steps to have the process 100% automated:

alt tag

Update Version Variables And Package

alt tag

To configure this task correctly please visit:

https://marketplace.visualstudio.com/items?itemName=solucionespsg.UpdateVersionVariablesAndPackage

Replace tokens in ** /*.json:

alt tag

To perform the replacements correctly you must configure your file as follows:

task.json:

alt tag

vss-extension.json:

alt tag

If you use another versioning system you can skip these first 2 steps.

Generate and publish vsix to Marketplace:

alt tag

To know how to generate an azure DevOps token please visit the following link:

https://learn.microsoft.com/en-us/azure/devops/extend/publish/command-line?view=azure-devops

If we only want to generate the vsix file without publish it to the marketplace:

alt tag

If you don't have typescript code to compile:

alt tag

If you compile typescript you should use this default option in "Yes":

alt tag

Only in cases of compiling typescrip: In this case using the latest version to generate vsix files one of the components downloads a file with spaces. If it is not changed at compile time, it gives an error.

If you don't use the same version you should set the value to "No"

If you don't have generate the vsix file:

alt tag

The name of the vsix file is built based on the vss-extension.json: publisher + id + "-" + Version + ".vsix"

alt tag

This option is in case we want to deploy the package in the release (This has not been tested).

Version to publish on Marketplace:

The version used to publish on the marketplace is the version of the vss-extension.json file and the file name is de same to use to generate the vsix file: publisher + id + "-" + Version + ".vsix"

alt tag

File path destination

The destination of the file is in the path of default artifact staging directory

Show vars:

alt tag

This step is not required. Shows the variables that we can use later.

Publish Artifact: vsxi

alt tag

This step is not required. Publish our artifact.

Execution

Pipeline:

alt tag

alt tag

MarketPlace

alt tag

Finally:

alt tag

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft