0

How to build a VSTS extension in Visual Studio 2017. The post build event configured in package.json doesn't work from Visual Studio.

Only the Command npm run build triggers the build and postbuild events. I want vsix file to be created on building the VisualStudio 2017 project.

This is my package.json file

Community
  • 1
  • 1
Siva
  • 13
  • 4

1 Answers1

1

We cannot build directly to generate the vsix file in VS. Just as you said we can only trigger the postbuild events to call the command tfx extension create --manifest-globs vss-extension.json to package it.

To create TFS/VSTS extensions, you can refer to this article for detials :Create your first extension with Visual Studio

To package as the vsix file, please see Packaging and publishing - Package

If you mean create Visual Studio VSIX Package, then you can reference below articles:

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55