Skip to content

Commit

Permalink
Update Utils.ts
Browse files Browse the repository at this point in the history
Find vs2022 version of vsixpublisher
  • Loading branch information
jessehouwing authored Apr 8, 2022
1 parent 35b6d4f commit 2120c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BuildTasks/PublishVSExtension/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let loggedIn = false;
export function getVsixPublisherExe(): string {
if (cacheVsixPublisherExe === "") {
const vswhereTool = tl.tool(path.join(__dirname, "tools", "vswhere.exe"));
vswhereTool.line("-version [15.0,17.0) -latest -requires Microsoft.VisualStudio.Component.VSSDK -find VSSDK\\VisualStudioIntegration\\Tools\\Bin\\VsixPublisher.exe");
vswhereTool.line("-version [15.0,) -latest -requires Microsoft.VisualStudio.Component.VSSDK -find VSSDK\\VisualStudioIntegration\\Tools\\Bin\\VsixPublisher.exe");
const vswhereResult = vswhereTool.execSync({ silent: true } as tr.IExecSyncOptions);
const vsixPublisherExe = vswhereResult.stdout.trim();
if (vswhereResult.code === 0 && vsixPublisherExe && tl.exist(vsixPublisherExe))
Expand Down Expand Up @@ -75,4 +75,4 @@ export function publish(vsixPath: string, manifestPath: string, warningsToIgnore
}

console.info(`Published successfully.`)
}
}

0 comments on commit 2120c8f

Please sign in to comment.