// This method is called after the project is created. public void RunFinished() { if (dte == null) { NuGetWizard.RunFinished(); } // if solution if (dte != null) { // set startup project try { // get startup project var project = dte.GetProjects().First(p => p.UniqueName.Contains(safesolutionname + ".Client.Domain.Test")); // set startup project SolutionBuild2 sb = (SolutionBuild2)dte.Solution.SolutionBuild; sb.StartupProjects = new object[] { project.UniqueName }; } catch { } // collapse projects try { dte.CollapseAll(exlusionList: ProjectFolder); } catch { } // copy lib try { var directory = Path.GetDirectoryName(dte.GetProjects().First().FullName); directory = Path.Combine(directory, @"..\.."); //directory.CreateLib(Resources, true); //directory.UnpackZipToLib(ResourceArchives); } catch { } } }