MSBuild target for publishing to Visual Studio Marketplace #267
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #256.
This adds a build target called
PublishToMarketplace. It uses the VsixPublisher.exe that comes with theMicrosoft.VSSDK.BuildToolsNuGet package.You can publish an extension to the marketplace by running this
The build target depends onRebuild, which means a full rebuild of the project will occur before publishing. That means you don't need to run theBuildtarget beforehand.You can have the extension built before publishing by specifying the
BuildBeforePulishproperty:The
publish.jsonmanifest file will be found by walking up the directory tree from the project directory. If you want to specify a specific manifest, you can specify the path to the file:If you've moved the extension file somewhere else, you can override the file path by specifying the
PublishExtensionproperty:If you want to ignore specific warnings from
VsixPublisher.exe, you can specify them as a CSV string: