question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to install the extension (VS 2017, VS 2019)

See original GitHub issue

Versions

  • Git Diff Margin version: 3.10.3.462 (latest)
  • Visual Studio version: 2017 Professional (15.9.36), 2019 Professional (16.10.3)

What happened

Cannot install the extension neither via the extensions manager in Visual Studio, nor by manually running the GitDiffMargin.vsix. The installer says “This extension is not installable on any currently installed products”. See the screenshot and the full log below.

I’ve tried using the vsixinstaller.exe from Visual Studio 2019, but the error message and the logs are the same:

PS> & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\VSIXInstaller.exe" .\GitDiffMargin.vsix

I do have Visual Studio 2022 Preview installed, so I suspect it might be the issue. I’ve used GitDiffMargin before and it worked great! According to the manifest it seems GitDiffMargin should work in VS 2022 Preview too, but I didn’t really expect it to.

Screenshots

image

Logs

2021-07-02 11:01:23 - Microsoft VSIX Installer
2021-07-02 11:01:23 - -------------------------------------------
2021-07-02 11:01:23 - vsixinstaller.exe version:
2021-07-02 11:01:23 - 17.0.1616-preview1
2021-07-02 11:01:23 - -------------------------------------------
2021-07-02 11:01:23 - Command line parameters:
2021-07-02 11:01:23 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\werat\Downloads\GitDiffMargin.vsix
2021-07-02 11:01:23 - -------------------------------------------
2021-07-02 11:01:23 - Microsoft VSIX Installer
2021-07-02 11:01:23 - -------------------------------------------
2021-07-02 11:01:24 - Initializing Install...
2021-07-02 11:01:24 - Extension Details...
2021-07-02 11:01:24 - 	Identifier         : GitDiffMargin..5ef9f816-d9ce-45cd-a8fa-cd67a807df0e
2021-07-02 11:01:24 - 	Name               : Git Diff Margin
2021-07-02 11:01:24 - 	Author             : Laurent Kempé
2021-07-02 11:01:24 - 	Version            : 3.10.3.462
2021-07-02 11:01:24 - 	Description        : Git Diff Margin displays live Git changes of the currently edited file on Visual Studio margin and scroll bar. Supports Visual Studio 2012 through Visual Studio 2019.
2021-07-02 11:01:24 - 	Locale             : en-US
2021-07-02 11:01:24 - 	MoreInfoURL        : https://github.com/laurentkempe/GitDiffMargin
2021-07-02 11:01:24 - 	InstalledByMSI     : False
2021-07-02 11:01:24 - 	SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
2021-07-02 11:01:24 - 
2021-07-02 11:01:24 - 	SignatureState     : Unsigned
2021-07-02 11:01:24 - 	Supported Products : 
2021-07-02 11:01:24 - 		Microsoft.VisualStudio.Community
2021-07-02 11:01:24 - 			Version : [11.0,18.0)
2021-07-02 11:01:24 - 			ProductArchitecture : notSpecified
2021-07-02 11:01:24 - 		Microsoft.VisualStudio.Pro
2021-07-02 11:01:24 - 			Version : [11.0,18.0)
2021-07-02 11:01:24 - 			ProductArchitecture : notSpecified
2021-07-02 11:01:24 - 
2021-07-02 11:01:24 - 	References         : 
2021-07-02 11:01:24 - 	Prerequisites      : 
2021-07-02 11:01:24 - 		-------------------------------------------------------
2021-07-02 11:01:24 - 		Identifier   : Microsoft.VisualStudio.Component.CoreEditor
2021-07-02 11:01:24 - 		Name         : Visual Studio core editor
2021-07-02 11:01:24 - 		Version      : [15.0,18.0)
2021-07-02 11:01:24 - 
2021-07-02 11:01:24 - Signature Details...
2021-07-02 11:01:24 - 	Extension is not signed.
2021-07-02 11:01:24 - 
2021-07-02 11:01:24 - Searching for applicable products...
2021-07-02 11:01:24 - Found installed product - Global Location
2021-07-02 11:01:24 - Found installed product - Visual Studio Professional 2019
2021-07-02 11:01:24 - Found installed product - Visual Studio Professional 2022 Preview
2021-07-02 11:01:24 - Found installed product - Visual Studio Professional 2017
2021-07-02 11:01:24 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sharwellcommented, Jul 2, 2021

Interesting I’ll take a look

0reactions
laurentkempecommented, Jul 3, 2021

This was fixed by the changes to source.extension.vsixmanifest in 548b527. The vsixinstaller for dev17 doesn’t like the lack of <ProductArchitecture>.

I see now, from the doc

For product versions less than 17.0 the default value is x86 and can be omitted. For product versions 17.0 and greater this element is required and there is no default value. For Visual Studio 2022 the only valid content for this element is “amd64”.

I will close this issue as this is now resolved with published version 3.10.4, and it will be enhanced with the changes [548b527](https://docs.microsoft.com/en-us/visualstudio/extensibility/migration/update-visual-studio-extension?view=vs-2022#add-a-visual-studio-2022-target) and available when we have #401 merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install the extension on Visual Studio 2017 after ...
1 Answer. I believe this issue crops up due to the 'Visual Studio Extension File' not having the appropriate supported VS Version Numbers ......
Read more >
Troubleshoot Visual Studio installation and upgrade issues
Troubleshoot Visual Studio installation and upgrade issues · 1. Check whether the problem is a known issue · 2. Try repairing Visual Studio...
Read more >
All VSIX extension in Visual Studio 2019 install failed
Hi David, please go to this folder C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances and check the subfolders, remove the subfolder one ...
Read more >
Cannot install Microsoft Visual Studio extension
I tried to install using VS 2019 Community - Said it could not due to missing pre recs - Will there ever be...
Read more >
It doesn't work for visual studio professional 2019. Lower ...
10/16/2019 10:25:40 AM - Installation of GitHub.VisualStudio failed. The extension has a lower version than required by Visual Studio.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found