Interface IVsSolutionActions
Actions that can be used with the a IVsSolution model.
Inherited Members
Namespace: CodeFactory.VisualStudio
Assembly: CodeFactory.VisualStudio.dll
Syntax
public interface IVsSolutionActions : IVsActions
Methods
| Improve this Doc View SourceCreateSolutionFolderAsync(VsSolution, string)
Creates a new solution folder for the target solution.
Declaration
Task<VsSolutionFolder> CreateSolutionFolderAsync(VsSolution source, string name)
Parameters
Type | Name | Description |
---|---|---|
VsSolution | source | The solution to add the solution folder to. |
string | name | The name of the solution folder to be added. |
Returns
Type | Description |
---|---|
Task<VsSolutionFolder> | Returns the solution folder. |
GetChildrenAsync(VsSolution, bool)
Gets the solution folders and projects that belong to the solution.
Declaration
Task<IReadOnlyList<VsModel>> GetChildrenAsync(VsSolution source, bool allChildren)
Parameters
Type | Name | Description |
---|---|---|
VsSolution | source | The solution model to get the children from. |
bool | allChildren | Get all children not just the first children of the solution. |
Returns
Type | Description |
---|---|
Task<IReadOnlyList<VsModel>> | Returns a readonly list of the children to the solution. If there are no children an empty list will be returned. |
GetProjectsAsync(VsSolution, bool)
Gets the projects for the solution.
Declaration
Task<IReadOnlyList<VsProject>> GetProjectsAsync(VsSolution source, bool allChildren)
Parameters
Type | Name | Description |
---|---|---|
VsSolution | source | The solution model to get the projects from. |
bool | allChildren | Get all children not just the first children of the solution. |
Returns
Type | Description |
---|---|
Task<IReadOnlyList<VsProject>> | Returns all the projects that are part of the solution. Will return an empty list if no projects are found. |
GetSolutionFoldersAsync(VsSolution, bool)
Gets the solution folders for the solution.
Declaration
Task<IReadOnlyList<VsSolutionFolder>> GetSolutionFoldersAsync(VsSolution source, bool allChildren)
Parameters
Type | Name | Description |
---|---|---|
VsSolution | source | The solution model to get the solution folders from. |
bool | allChildren | Get all children not just the first children of the solution. |
Returns
Type | Description |
---|---|
Task<IReadOnlyList<VsSolutionFolder>> | Returns a readonly of the solutions folders that are part of the solution. If there are no solution folders an empty list will be returned. |