From b4cccb9c20cb4fac864e3b2710bf4097da76f7dd Mon Sep 17 00:00:00 2001 From: Valerio Date: Sat, 10 Oct 2026 19:56:15 +0200 Subject: [PATCH] Fix Marketplace publishing - Separate the VSIX manifest tags with semicolons: VsixPublisher reads them as one 145-character tag otherwise (maximum 50). - Run VsixPublisher from bin\lib, where its dependencies are; the copy under bin crashes while initializing telemetry. --- .github/workflows/release.yml | 5 +++-- SourceControlSwitcher/Manifest/source.extension.vsixmanifest | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f7d4e0..436632b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,10 +91,11 @@ jobs: VS_MARKETPLACE_PAT: ${{ secrets.VS_MARKETPLACE_PAT }} run: | if (-not $env:VS_MARKETPLACE_PAT) { throw 'Secret VS_MARKETPLACE_PAT is not set' } - # VsixPublisher ships with the Microsoft.VSSDK.BuildTools package: restore it. + # VsixPublisher ships with the Microsoft.VSSDK.BuildTools package: restore it. Use the copy under bin\lib, + # which has its dependencies next to it (the one under bin crashes while initializing telemetry). msbuild SourceControlSwitcher/SourceControlSwitcher.csproj -t:Restore -v:minimal $publisher = Get-ChildItem "$env:USERPROFILE\.nuget\packages\microsoft.vssdk.buildtools" -Recurse -Filter VsixPublisher.exe | - Where-Object { $_.Directory.Name -eq 'bin' } | Sort-Object FullName -Descending | Select-Object -First 1 + Where-Object { $_.Directory.Name -eq 'lib' } | Sort-Object FullName -Descending | Select-Object -First 1 if (-not $publisher) { throw 'VsixPublisher.exe not found' } & $publisher.FullName publish ` -payload 'release/target/Release/SourceControlSwitcher.vsix' ` diff --git a/SourceControlSwitcher/Manifest/source.extension.vsixmanifest b/SourceControlSwitcher/Manifest/source.extension.vsixmanifest index b532720..82996c3 100644 --- a/SourceControlSwitcher/Manifest/source.extension.vsixmanifest +++ b/SourceControlSwitcher/Manifest/source.extension.vsixmanifest @@ -9,7 +9,7 @@ https://github.com/Ryadel/SourceControlSwitcher#readme Resources\CHANGELOG.txt Resources\Icon.png - Source Control, Source Code Control, Source Control Provider, Source Control Client, Git, SVN, Subversion, TFVC, Team Foundation, Perforce, Helix + Source Control;Source Code Control;Source Control Provider;Git;SVN;Subversion;TFVC;Team Foundation;Perforce;Helix