You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extensibility/walkthrough-publishing-a-visual-studio-extension-via-command-line.md
+9-35Lines changed: 9 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ ms.workload:
19
19
20
20
This walkthrough shows you how to publish a Visual Studio extension to the Visual Studio Marketplace using the command line. When you add your extension to the Marketplace, developers can use the [**Extensions and Updates**](../ide/finding-and-using-visual-studio-extensions.md) dialog to browse there for new and updated extensions.
21
21
22
-
VsixPublisher.exe is the command line tool for publishing Visual Studio extensions to the Marketplace. It can be accessed from ${VSInstallDir}\VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe. Commands available on this tool are: **publish**, **createPublisher**, **deletePublisher**, **deleteExtension**, **login**, **logout**.
22
+
VsixPublisher.exe is the command line tool for publishing Visual Studio extensions to the Marketplace. It can be accessed from ${VSInstallDir}\VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe. Commands available on this tool are: **publish**, **deletePublisher**, **deleteExtension**, **login**, **logout**.
23
23
24
24
## Commands
25
25
@@ -38,22 +38,6 @@ Publishes an extension to the Marketplace. The extension can be a vsix, an exe/m
38
38
VsixPublisher.exe publish -payload "{path to vsix}" -publishManifest "{path to vs-publish.json}" -ignoreWarnings "VSIXValidatorWarning01,VSIXValidatorWarning02"
39
39
```
40
40
41
-
### createPublisher
42
-
43
-
Creates a publisher on the Marketplace. Also logs the publisher into the machine for future actions (for example, deleting/publishing an extension).
44
-
45
-
|Command Options |Description |
46
-
|---------|---------|
47
-
|displayName (required) | Display name of the publisher. |
48
-
|publisherName (required) | The name of the publisher (for example, the identifier). |
49
-
|personalAccessToken (required) | Personal Access Token that is used to authenticate the publisher. |
50
-
|shortDescription | A short description of the publisher (not a file). |
51
-
|longDescription | A long description of the publisher (not a file). |
> This command is no longer available. You can create a new publisher by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/manage/publishers).
98
+
111
99
## publishManifest file
112
100
113
101
A publishManifest file is used by the **publish** command. It represents all the metadata about the extension that the Marketplace needs to know. If the extension being uploaded is from a VSIX extension, the "identity" property must only have the "internalName" set. This is because the rest of the "identity" properties can be generated from the vsixmanifest file. If the extension is a msi/exe or a link extension, the user must provide the required fields in the "identity" property. The rest of the manifest contains information specific to the Marketplace (for example, categories, whether Q&A is enabled, etc.).
@@ -227,33 +215,19 @@ In this case, we will use a default VSPackage extension, but the same steps are
227
215
228
216
3. Open command line and navigate to ${VSInstallDir}\VSSDK\VisualStudioIntegration\Tools\Bin\ directory.
229
217
230
-
4. To create a new publisher, use the following command:
231
-
232
-
```
233
-
VsixPublisher.exe createPublisher -publisherName "TestVSIXPublisher" -displayName "Test VSIX Publisher" -personalAccessToken "{Personal Access Token that is used to authenticate the publisher. If not provided, the pat is acquired from the logged-in users.}"
234
-
```
235
-
236
-
5. On successful creation of publisher, you will see the following command line message:
237
-
238
-
```
239
-
Added 'Test VSIX Publisher' as a publisher on the Marketplace.
240
-
```
241
-
242
-
6. You can verify the new publisher you created by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/manage/publishers)
243
-
244
-
7. To publish a new extension, use the following command:
218
+
4. To publish a new extension, use the following command:
245
219
246
220
```
247
-
VsixPublisher.exe publish -payload "{Path to vsix file}" -publishManifest "{path to publishManifest file}"
221
+
VsixPublisher.exe publish -payload "{Path to vsix file}" -publishManifest "{path to publishManifest file}" -personalAccessToken "{Personal Access Token that is used to authenticate the publisher. If not provided, the pat is acquired from the logged-in users.}"
248
222
```
249
223
250
-
8. On successful creation of publisher, you will see the following command line message:
224
+
5. On successful publishing of extension, you will see the following command line message:
251
225
252
226
```
253
227
Uploaded 'MyVsixExtension' to the Marketplace.
254
228
```
255
229
256
-
9. You can verify the new extension you published by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/)
230
+
6. You can verify the new extension you published by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/)
257
231
258
232
### Install the extension from the Visual Studio Marketplace
0 commit comments