Gets the projects in the workspace (solution or project).
- Namespace
- Statiq
.CodeAnalysis - Containing Type
- ReadWorkspace
Syntax
protected abstract IEnumerable<Project> GetProjects(IExecutionContext context, IFile file)
Parameters
Name | Type | Description |
---|---|---|
context | IExecutionContext | The execution context. |
file | IFile | The project file. |
Return Value
Type | Description |
---|---|
IEnumerable |
A sequence of Roslyn Project instances in the workspace. |