public IEnumerable <InstalledExtension> ListInstalledExtensions()
        {
            // Get the client
            VssConnection connection = Context.Connection;
            ExtensionManagementHttpClient extensionManagementClient = connection.GetClient <ExtensionManagementHttpClient>();

            // Get the list of installed extensions
            List <InstalledExtension> extensions = extensionManagementClient.GetInstalledExtensionsAsync().Result;

            foreach (InstalledExtension extension in extensions)
            {
                LogExtension(extension);
            }

            return(extensions);
        }