/// <summary> /// Adds the project to solution. /// </summary> /// <param name="instance">The instance.</param> /// <param name="path">The path.</param> /// <param name="templatePath">The template path.</param> /// <param name="projectName">ProjectName of the project.</param> public static void AddProjectToSolution( this Solution instance, string path, string templatePath, string projectName) { TraceService.WriteLine("SolutionExtensions::AddProjectToSolution path=" + path); instance.AddFromTemplate(templatePath, path, projectName); }
/// <summary> /// Adds the project to solution. /// </summary> /// <param name="instance">The instance.</param> /// <param name="path">The path.</param> /// <param name="templatePath">The template path.</param> /// <param name="projectName">ProjectName of the project.</param> public static void AddProjectToSolution( this Solution instance, string path, string templatePath, string projectName) { string projectPath = string.Format("{0}{1}", path, projectName); instance.AddFromTemplate(templatePath, projectPath, projectName); }