Create() public static method

public static Create ( ISolution solution, string directory, string name ) : CPlusPlusProject
solution ISolution
directory string
name string
return CPlusPlusProject
Beispiel #1
0
        public virtual async Task <IProject> Generate(ISolution solution, string name)
        {
            var location = Path.Combine(solution.CurrentDirectory, name);

            if (!Directory.Exists(location))
            {
                Directory.CreateDirectory(location);
            }

            IProject project = CPlusPlusProject.Create(solution, location, name);

            project = solution.AddProject(project);

            if (solution.StartupProject == null)
            {
                solution.StartupProject = project;
            }

            return(project);
        }