Exemplo n.º 1
0
        public virtual Project NewProject(string name)
        {
            var proj = new Project(name, this);
            proj.DirectoryPath = System.IO.Path.Combine(Path, name);

            Projects.Add(proj);

            return proj;
        }
Exemplo n.º 2
0
        private void AddSubFolderInProject(Project project, ProjectItem vsProjectItem)
        {
            var newFolder = new FolderProxy(vsProjectItem.Name, project);

            newFolder.VsProjectItem = vsProjectItem;
            newFolder.DirectoryPath = new System.IO.DirectoryInfo(vsProjectItem.get_FileNames(0)).FullName;

            project.Items.Add(newFolder);

            if (vsProjectItem.ProjectItems.Count > 0)
            {
                AddFilesAndFolders(newFolder, vsProjectItem);
            }
        }
Exemplo n.º 3
0
        private Folder CreateFolderInUnitTestProject(File mvvmFile, Project testProject)
        {
            var folderStack = TreeWalker.GetFolderStack(mvvmFile);

            var folderInUnitTestProj = testProject as Folder;
            while (folderStack.Count > 0)
            {
                var folderToCreate = folderStack.Pop();

                if (!folderInUnitTestProj.HasFolder(folderToCreate.Name))
                    folderInUnitTestProj.AddFolder(factory.NewFolder(folderToCreate.Name, folderInUnitTestProj));

                folderInUnitTestProj = folderInUnitTestProj.GetSubFolder(folderToCreate.Name);
            }
            return folderInUnitTestProj;
        }
        private void AddSubFolderInProject(Project project, ProjectItem vsProjectItem)
        {
            var newFolder = new FolderProxy(vsProjectItem.Name, project);
            newFolder.VsProjectItem = vsProjectItem;
            newFolder.DirectoryPath = new System.IO.DirectoryInfo(vsProjectItem.get_FileNames(0)).FullName;

            project.Items.Add(newFolder);

            if (vsProjectItem.ProjectItems.Count > 0)
            {
                AddFilesAndFolders(newFolder, vsProjectItem);
            }
        }
Exemplo n.º 5
0
 private static void NewProject()
 {
 	var solution = factory.NewSolution(System.IO.Path.Combine(Environment.CurrentDirectory, "Test.sln"));
 	solution.Path = Environment.CurrentDirectory;
     project = solution.NewProject("RichRememberTheMilk");
 	project.DirectoryPath = System.IO.Path.Combine(Environment.CurrentDirectory, "RichRememberTheMilk");
 }