In previous versions of Visual Studio I could use the following code to retrieve information about a certain installed extension (vsix):
IVsExtensionManager manager = ServiceProvider.GlobalProvider.GetService(typeof(SVsExtensionManager)) as IVsExtensionManager;
if (manager != null)
{
VsExtension extension = new VsExtension();
IInstalledExtension info = manager.GetInstalledExtension(cExtensionProductId);
}
In the new Visual Studio 2017 version, the 'manager
' variable is always null. Microsoft changed the way to retrieve the information (they no longer use the system registry), but I can't find another way to retrieve the info.
Do you know where I can find more information and/or provide a sample of the new implementation?
Thank you in advance!