Class Solution
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
An immutable snapshot of a solution file and its declared projects.
public sealed class SolutionProperties
Directory
The containing directory.
public AbsolutePath Directory { get; }Property Value
Path
The absolute filesystem path.
public AbsolutePath Path { get; }Property Value
Projects
Projects declared by the loaded solution.
public IReadOnlyList<ProjectInfo> Projects { get; }Property Value
this[string]
Returns the already-loaded workspace solution.
public ProjectInfo this[string solutionPath] { get; }Property Value
Methods
Load(AbsolutePath, CancellationToken)
Loads an absolute solution file asynchronously without evaluating its projects.
public static Task<Solution> Load(AbsolutePath path, CancellationToken cancellationToken = default)Parameters
pathAbsolutePathcancellationTokenCancellationToken
Returns
Load(string, CancellationToken)
Loads an absolute or working-directory-relative solution file asynchronously.
public static Task<Solution> Load(string path, CancellationToken cancellationToken = default)Parameters
pathstringcancellationTokenCancellationToken
Returns
ToString()
Returns the absolute solution file path.
public override string ToString()Returns
Operators
implicit operator string(Solution)
Returns the absolute solution file path.
public static implicit operator string(Solution solution)Parameters
solutionSolution