Skip to content

Commit

Permalink
Fixed VSIX installation
Browse files Browse the repository at this point in the history
Fixed VSIX installation in the guided installer to skip packages with no actual Visual Studio instance installed.  Fixed #956.
  • Loading branch information
EWSoftware committed Dec 30, 2022
1 parent ecc592b commit 8e2d7a0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public void InitializeInternal(XElement configuration)
var supportedVersions = package.Attribute("supportedVersions").Value.Split(new[] { ',', ' ' },
StringSplitOptions.RemoveEmptyEntries);
var versionsFound = VisualStudioInstance.AllInstances.Where(i => supportedVersions.Any(v =>
i.Version.StartsWith(v, StringComparison.Ordinal))).OrderBy(i => i.Version).ToList();
i.Version.StartsWith(v, StringComparison.Ordinal) &&
!String.IsNullOrWhiteSpace(i.VSIXInstallerPath) &&
File.Exists(i.VSIXInstallerPath))).OrderBy(i => i.Version).ToList();

// Use the latest VSIX installer found
if(versionsFound.Any())
Expand Down

0 comments on commit 8e2d7a0

Please sign in to comment.