public static Solution GenerateWithAllReferences(UiProject mainProject, bool generateEntryProject, string binariesPath, IEnumerable <Project> extraProjects = null) { if (extraProjects == null) { extraProjects = new Project[0]; } var extensionProjects = Scanner.Instance.Projects.OfType <ExtensionProject>(); var pluginProjects = Scanner.Instance.Projects.OfType <PluginProject>().Where(x => !x.PluginModes.Any() || x.PluginModes.Contains(mainProject.UiType)); var projects = extensionProjects .Union(extraProjects) .Union(extraProjects.SelectMany(x => x.GetAllReferences())) .Union(extensionProjects.SelectMany(x => x.GetAllReferences())) .Union(pluginProjects) .Union(pluginProjects.SelectMany(x => x.GetAllReferences())).ToList(); return(SolutionGenerator.Generate(mainProject, generateEntryProject, binariesPath, projects)); }
public static Solution GenerateWithAllReferences(UiProject mainProject, IEnumerable<Project> extraProjects = null) { if(extraProjects == null) { extraProjects = new Project[0]; } var extensionProjects = Scanner.Instance.Projects.OfType<ExtensionProject>(); var pluginProjects = Scanner.Instance.Projects.OfType<PluginProject>().Where(x => !x.PluginModes.Any() || x.PluginModes.Contains(mainProject.UiType)); var projects = extensionProjects .Union(extraProjects) .Union(extraProjects.SelectMany(x => x.GetAllReferences())) .Union(extensionProjects.SelectMany(x => x.GetAllReferences())) .Union(pluginProjects) .Union(pluginProjects.SelectMany(x => x.GetAllReferences())).ToList(); return SolutionGenerator.Generate(mainProject, projects); }