Exemplo n.º 1
0
 public SolutionModule(SolutionName SolutionName, FilePath SolutionPath = null)
 {
     this.SolutionName = SolutionName;
     this.SolutionPath = SolutionPath ?? FilePath.Empty;
     this.State = new DevSolutionState
     {
         SolutionName = SolutionName
     };
 }
Exemplo n.º 2
0
 public FileWriteResult Save(FilePath outpath = null)
 {
     var text = State.ToString();
     if (outpath != null && not(outpath.IsEmpty))
         return outpath.Write(text);
     else if (not(SolutionPath.IsEmpty))
         return SolutionPath.Write(text);
     else
         return (FolderPath.Parse(Environment.CurrentDirectory) + FileName.Parse($"{SolutionName.ToString()}.sln")).Write(text);
 }
Exemplo n.º 3
0
 public override string ToString()
     => SolutionName.ToString();
Exemplo n.º 4
0
 public static SolutionModule Create(SolutionName Name, FilePath SolutionPath = null)
     => new SolutionModule(Name);