public ProjectInformationList OnGetStartupProjects(JToken arg)
        {
            try {
                var message        = arg.ToObject <ProjectInformationParams> ();
                var startupProject = PackageManagementServices
                                     .ProjectService
                                     .OpenSolution
                                     .Solution
                                     .StartupItem as DotNetProject;

                var list = new ProjectInformationList();
                if (startupProject != null)
                {
                    list.Projects = new [] { startupProject.CreateProjectInformation() };
                }
                else
                {
                    list.Projects = Array.Empty <ProjectInformation> ();
                }
                return(list);
            } catch (Exception ex) {
                LoggingService.LogError("OnGetStartupProjects error", ex);
                throw;
            }
        }
 public ProjectInformationList OnGetSolutionProjects(JToken arg)
 {
     try {
         var message = arg.ToObject <ProjectInformationParams> ();
         var list    = new ProjectInformationList {
             Projects = GetProjectsInSolution().ToArray()
         };
         return(list);
     } catch (Exception ex) {
         LoggingService.LogError("OnGetSolutionProjects error", ex);
         throw;
     }
 }