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)); } }
public static Model Load() { var mod = new Model(); mod.LoadFromXml(_path); return mod; }