OpenCppCoverage/OpenCppCoveragePlugin

Plugin fails to install

dingetje opened this issue · 6 comments

The plugin fails to install on my system where both VS2013 and VS2022 are installed:

image

20/02/2023 11:02:57 - Searching for applicable products...
20/02/2023 11:02:57 - Found installed product - Visual Studio Community 2022
20/02/2023 11:02:57 - Found installed product - Global Location
20/02/2023 11:02:58 - 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()

It looks like this project has been abandoned. I have found a link from Microsoft about what needs to be done in order to install this plugin on VS2022 (looks like VS2019 and earlier were 32bit and VS2022 is 64bit; that is without reading the whole post): https://learn.microsoft.com/en-us/visualstudio/extensibility/migration/update-visual-studio-extension?view=vs-2022#extensions-without-running-code

I might create a fork of this and walk through the steps to see if I can get it working again later, as I also need this for a project. If I get it working I will report back.

@dingetje I found a fork of this project where someone has done the work already: https://github.com/h1day/OpenCppCoveragePlugin/releases/tag/for-vs2022

Thanks you @h1day

@dingetje I found a fork of this project where someone has done the work already: https://github.com/h1day/OpenCppCoveragePlugin/releases/tag/for-vs2022

Thanks you @h1day

Thanks!

Hmmm...while that version install just fine for VS2022, it fails to detect VS2013

image

@dingetje You should be able to install the official version of the Plugin for VS 2013 and the unofficial for VS 2023. I am curious through why are you stuck using VS 2013? You might be able to get away with locking down the VC toolset used in your .sln configuration. This forces VS to use a specific version of C++ compiler and Visual C++ libraries. If you are using VCPKG this will also need to be applied to your packages by the use of a triplet.