Microsoft Visual Studio Solution File, works for both classic .sln (text) and the new .slnx (XML) solution formats.
Solution
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetProjectFullPath | 1 | Resolve the full path of a project relative to the solution file. |
| GetProject | 1 | Find a project or solution folder by its GUID (case-insensitive). |
| GetRootProjects | 1 | Get all top-level nodes (no parent solution folder). |
| GetChildProjects | 1 | Get the direct children of the given parent solution folder GUID. |
| Save | 1 | Save this solution model as a .slnx (XML) file. |
| LoadWorkspace | 1 | |
| Load | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Projects | 1 | The projects and solution folders declared in the solution. |
| Configurations | 1 | Solution level build configurations / platforms, e.g. |
| Global | 1 | Global section key/value pairs (e.g. |
| FilePath | 1 | The file path of the solution that this model was parsed from. |
| IsXmlFormat | 1 | True when the source file was a .slnx (XML) solution. |
| SolutionGuid | 1 | The solution GUID, mirrored from Global.SolutionGuid. |
| FormatVersion | 1 | |
| VisualStudioVersion | 1 | |
| MinimumVisualStudioVersion | 1 |
04 Members
Resolve the full path of a project relative to the solution file.
String)Find a project or solution folder by its GUID (case-insensitive).
Get all top-level nodes (no parent solution folder).
String)Get the direct children of the given parent solution folder GUID.
String)Save this solution model as a .slnx (XML) file. The output is symmetric with SlnxParser.ParseSlnx() so it can be re-read.
| Name | Type | Description |
|---|---|---|
path | String | The target |
The projects and solution folders declared in the solution.
Solution level build configurations / platforms, e.g. Debug|AnyCPU.
Global section key/value pairs (e.g. SolutionGuid).
The file path of the solution that this model was parsed from.
True when the source file was a .slnx (XML) solution.
The solution GUID, mirrored from Global.SolutionGuid. Setting this also updates the underlying global property.
String)