Exemplo n.º 1
0
        public void CreateFoldersForModel(Model model)
        {
            if (model.OutputFolder != null)
            {
                OutputFolder = CreateOrCleanDirectory(model.OutputFolder);

                SrcFolder = CreateOrCleanDirectory(Path.Combine(OutputFolder.FullName, model.SrcFolder));

                AppFolder = CreateOrCleanDirectory(Path.Combine(SrcFolder.FullName, model.AppFolder));

                ProjectFolder =
                    CreateOrCleanDirectory(Path.Combine(AppFolder.FullName, model.Solution.ProjectLibraryName));

                CreateOrCleanDirectory(Path.Combine(ProjectFolder.FullName, "Properties"));

                TestFolder = CreateOrCleanDirectory(Path.Combine(SrcFolder.FullName, model.TestFolder));

            }
        }
Exemplo n.º 2
0
 public static Model Load()
 {
     var mod = new Model();
     mod.LoadFromXml(_path);
     return mod;
 }