Publishing a Visual Studio extension to the Marketplace allows millions of developers to discover, install, and rate your tool. This tutorial walks you through creating a publisher profile, packaging your extension, publishing it, and maintaining your listing.
vsce CLI installed globally: npm install -g vsce..vsix file.A publisher represents the organization or individual that owns the extension.
mycompany)./* Example of generating a PAT in the portal */
Ensure your package.json and vss-extension.json are correctly configured.
{
"name": "my-sample-extension",
"publisher": "mycompany",
"version": "1.0.0",
"targets": [{ "id": "Microsoft.VisualStudio.Services" }],
"categories": ["Coding"],
"icon": "images/icon.png",
"files": [
{ "path": "README.md" },
{ "path": "bin/Debug/**" }
]
}
Run the VSCE packaging command:
vsce package
The command creates my-sample-extension-1.0.0.vsix in the current directory.
Use the PAT from Step 1 to upload the package.
vsce publish --pat YOUR_PERSONAL_ACCESS_TOKEN
Once the command succeeds, the extension appears in your publisher's list and is searchable in the Marketplace.
After publishing, you can edit the public listing:
vss-extension.json and run vsce publish again.