public static RamlScaffoldServiceBase GetRamlScaffoldService(Microsoft.VisualStudio.Shell.ServiceProvider serviceProvider)
        {
            var dte  = serviceProvider.GetService(typeof(SDTE)) as DTE;
            var proj = VisualStudioAutomationHelper.GetActiveProject(dte);
            RamlScaffoldServiceBase service;

            if (VisualStudioAutomationHelper.IsANetCoreProject(proj))
            {
                service = new RamlScaffoldServiceAspNetCore(new T4Service(serviceProvider), serviceProvider);
            }
            else
            {
                service = new RamlScaffoldServiceWebApi(new T4Service(serviceProvider), serviceProvider);
            }
            return(service);
        }
        public static RamlScaffoldServiceBase GetRamlScaffoldService(ServiceProvider serviceProvider)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            var dte  = serviceProvider.GetService(typeof(SDTE)) as DTE;
            var proj = VisualStudioAutomationHelper.GetActiveProject(dte);
            RamlScaffoldServiceBase service;

            if (VisualStudioAutomationHelper.IsANetCoreProject(proj))
            {
                service = new RamlScaffoldServiceAspNetCore(new T4Service(serviceProvider), serviceProvider);
            }
            else
            {
                service = new RamlScaffoldServiceWebApi(new T4Service(serviceProvider), serviceProvider);
            }
            return(service);
        }