Skip to content

Repo sync for protected CLA branch #7619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Feb 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
13156f8
VM-011921-Isolating-Code-Under-Test-with-Microsoft-Fakes-US1887262_2
Vaseem-raza Jan 21, 2022
4d6cdd6
Updating minor changes
Vaseem-raza Jan 21, 2022
ae3d622
Updating changes suggested by FTE
Vaseem-raza Jan 21, 2022
bfda3a3
Updating changes after peer review
Vaseem-raza Jan 24, 2022
3d79dbd
Update 1- 1887260
rachana-satao Jan 25, 2022
990aaf8
Update walkthrough-publishing-a-visual-studio-extension-via-command-l…
wade0016 Jan 31, 2022
7759866
Update walkthrough-publishing-a-visual-studio-extension-via-command-l…
wade0016 Feb 1, 2022
f823dab
Mock up
j-martens Feb 1, 2022
a526f1c
Update index.yml
j-martens Feb 1, 2022
985662c
Update index.yml
j-martens Feb 1, 2022
29c7c45
Update index.yml
j-martens Feb 1, 2022
f02b8c9
Update index.yml
j-martens Feb 1, 2022
f4fbe5a
Realigning sections.
j-martens Feb 1, 2022
4f742b6
Update index.yml
j-martens Feb 1, 2022
505b596
Update git-clone-repository.md
j-martens Feb 1, 2022
7c9ae76
Update git-clone-repository.md
j-martens Feb 1, 2022
8087868
Update git-create-repository.md
j-martens Feb 1, 2022
f7d21df
Update index.yml
j-martens Feb 1, 2022
eaf7f38
Update index.yml
j-martens Feb 1, 2022
c056535
Merge pull request #9436 from wade0016/patch-1
PRMerger16 Feb 2, 2022
6982d49
Update git-clone-repository.md
j-martens Feb 2, 2022
0baf0f7
Update git-create-repository.md
j-martens Feb 2, 2022
f337e97
Final update
rachana-satao Feb 2, 2022
67da67f
Acrolinx-Score update
rachana-satao Feb 2, 2022
92186de
Updating article for acrolinx score
Vaseem-raza Feb 2, 2022
b7cfbad
Merge pull request #9387 from Vaseem-raza/VM-011921-Isolating-Code-Un…
PRMerger10 Feb 2, 2022
6a9af53
Merge pull request #9402 from rachana-satao/RAS-25-01-2022-VS-1887260-3
PMEds28 Feb 2, 2022
23b0ef3
Merge pull request #9457 from MicrosoftDocs/j-martens-patch-59
AnnaMHuff Feb 2, 2022
5da1f7d
Merging changes synced from https://github.com/MicrosoftDocs/visualst…
ghogen Feb 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ms.workload:

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.

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**.
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**.

## Commands

Expand All @@ -38,22 +38,6 @@ Publishes an extension to the Marketplace. The extension can be a vsix, an exe/m
VsixPublisher.exe publish -payload "{path to vsix}" -publishManifest "{path to vs-publish.json}" -ignoreWarnings "VSIXValidatorWarning01,VSIXValidatorWarning02"
```

### createPublisher

Creates a publisher on the Marketplace. Also logs the publisher into the machine for future actions (for example, deleting/publishing an extension).

|Command Options |Description |
|---------|---------|
|displayName (required) | Display name of the publisher. |
|publisherName (required) | The name of the publisher (for example, the identifier). |
|personalAccessToken (required) | Personal Access Token that is used to authenticate the publisher. |
|shortDescription | A short description of the publisher (not a file). |
|longDescription | A long description of the publisher (not a file). |

```
VsixPublisher.exe createPublisher -publisherName "{Publisher Name}" -displayName "{Publisher Display Name}" -personalAccessToken "{Personal Access Token}"
```

### deletePublisher

Deletes a publisher on the Marketplace.
Expand Down Expand Up @@ -108,6 +92,10 @@ Logs a publisher out of the machine.
VsixPublisher.exe logout -publisherName "{Publisher Name}"
```

### createPublisher
> [!Caution]
> This command is no longer available. You can create a new publisher by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/manage/publishers).

## publishManifest file

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.).
Expand Down Expand Up @@ -227,33 +215,19 @@ In this case, we will use a default VSPackage extension, but the same steps are

3. Open command line and navigate to ${VSInstallDir}\VSSDK\VisualStudioIntegration\Tools\Bin\ directory.

4. To create a new publisher, use the following command:

```
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.}"
```

5. On successful creation of publisher, you will see the following command line message:

```
Added 'Test VSIX Publisher' as a publisher on the Marketplace.
```

6. You can verify the new publisher you created by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/manage/publishers)

7. To publish a new extension, use the following command:
4. To publish a new extension, use the following command:

```
VsixPublisher.exe publish -payload "{Path to vsix file}" -publishManifest "{path to publishManifest file}"
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.}"
```

8. On successful creation of publisher, you will see the following command line message:
5. On successful publishing of extension, you will see the following command line message:

```
Uploaded 'MyVsixExtension' to the Marketplace.
```

9. You can verify the new extension you published by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/)
6. You can verify the new extension you published by navigating to [Visual Studio Marketplace](https://marketplace.visualstudio.com/)

### Install the extension from the Visual Studio Marketplace

Expand Down
Loading