public Project CreateProject (string language, ProjectCreateInformation info, XmlElement projectOptions) { XnaProject project = new XnaProject(language, info, projectOptions); ProjectCreateInformation contentInfo = new ProjectCreateInformation(); contentInfo.SolutionName = info.SolutionName; contentInfo.SolutionPath = info.SolutionPath; contentInfo.ProjectBasePath = info.ProjectBasePath.Combine("Content"); contentInfo.ProjectName = "Content"; ContentProject contentProject = (ContentProject)Services.ProjectService.CreateProject("ContentProject", contentInfo, projectOptions); FilePath includePath = FilePath.Empty.Combine("Content").Combine(contentProject.FileName); NestedContentProject nestedContent = new NestedContentProject(contentProject, includePath); project.NestedContentProjects.Add(nestedContent); return project; }
public Project CreateProject(string language, ProjectCreateInformation info, XmlElement projectOptions) { XnaProject project = new XnaProject(language, info, projectOptions); ProjectCreateInformation contentInfo = new ProjectCreateInformation(); contentInfo.SolutionName = info.SolutionName; contentInfo.SolutionPath = info.SolutionPath; contentInfo.ProjectBasePath = info.ProjectBasePath.Combine("Content"); contentInfo.ProjectName = "Content"; ContentProject contentProject = (ContentProject)Services.ProjectService.CreateProject("ContentProject", contentInfo, projectOptions); FilePath includePath = FilePath.Empty.Combine("Content").Combine(contentProject.FileName); NestedContentProject nestedContent = new NestedContentProject(contentProject, includePath); project.NestedContentProjects.Add(nestedContent); return(project); }