Exemple #1
0
 public static void DeleteProject(ProjectInfo project)
 {
     File.Delete(project.FileName);
 }
Exemple #2
0
        public static Collection<ProjectInfo> GetProjects(string path)
        {
            Collection<ProjectInfo> projects = new Collection<ProjectInfo>();
            string[] files = Directory.GetFiles(path);
            if (files != null)
            {
                for (int ix = 0; ix < files.Length; ix++)
                {
                    if (!Path.GetFileName(files[ix]).EndsWith("_csproj.xslt"))
                        continue;

                    ProjectInfo project = new ProjectInfo();
                    project.FolderName = path;
                    project.ProjectName = Path.GetFileNameWithoutExtension(files[ix]).Replace("_csproj", "");

                    projects.Add(project);
                }
            }
            return projects;
        }