26 using System.Collections.Generic;
27 using System.Diagnostics;
31 namespace SiliconStudio.Core.VisualStudio
36 [DebuggerDisplay(
"Projects = [{Projects.Count}]")]
40 private readonly List<string> headers;
49 headers =
new List<string>();
56 : this(original.FullPath, original.Headers, original.Projects, original.GlobalSections, original.Properties)
71 this.headers =
new List<string>(headers);
81 public string FullPath {
get; set; }
91 return projects.Where(project => project.ParentProject == null);
103 return globalSections;
111 public List<string> Headers
160 using (var writer =
new SolutionWriter(solutionPath))
162 writer.WriteSolutionFile(
this);
173 using (var reader =
new SolutionReader(solutionFullPath))
175 var solution = reader.ReadSolutionFile();
176 solution.FullPath = solutionFullPath;
189 using (var reader =
new SolutionReader(stream))
191 var solution = reader.ReadSolutionFile();
192 solution.FullPath = solutionFullPath;
Solution Clone()
Clones this instance.
void SaveAs(string solutionPath)
Saves this instance to the specified path.
Solution()
Initializes a new instance of the Solution class.
static Solution FromStream(string solutionFullPath, Stream stream)
Loads the solution from the specified stream.
A collection of PropertyItem
void Save()
Saves this instance to the FullPath path.
static Solution FromFile(string solutionFullPath)
Loads the solution from the specified file.
Solution(string fullpath, IEnumerable< string > headers, IEnumerable< Project > projects, IEnumerable< Section > globalSections, IEnumerable< PropertyItem > properties)
Initializes a new instance of the Solution class.