public static Tuple<string, Project> CreateProject(string basedirectory, Project p) { String dir = basedirectory + "\\" + p.ProjectName; p.SetProjectPath(dir); if (Directory.Exists(dir)) { return new Tuple<string, Project>("A project already exists with that name", null); } CreateProjectShell(dir); SaveProject(p); return new Tuple<string, Project>(null, p); }